Write a program to enter mark of a student in class 10,12 and B tech. To select in campus the carrier mark should be 60
#include<stdio.h>
main(){
int x,y,z; //Defining 3 variable for class 10 12 abd b.tech
printf("Enter your mark in class 10: ");
scanf("%d",&x);//Enter your mark in 10
printf("Enter your mark in class 12: ");
scanf("%d",&y);// Enter your mark in 12
printf("Enter your mark in B.tech: ");
scanf("%d",&z);// Enter your mark in Btech
if (x>=60) //Checking is mark is above 60 or not
if (y>=60) //Checking is mark is above 60 or not
if (z>=60) //Checking is mark is above 60 or not
printf("Selected");
else
printf("Not selected in B.Tech"); //This else is for the last if ie. line 13
else
printf("Not selected in class 12"); //This else is for the last if ie. line 12
else
printf("Not selected in class 10"); //This else is for the last if ie. line 11
}