Write a program to find the student details who got slot on a specific counselling date based on the student’s Cutoff marks, Age, HSC and SSLC marks.
#include<stdio.h>
int main(){
int age,cutoffMarks,hsc,sslc;
printf("Enter the students age: ");
scanf("%d",&age);
printf("Enter the students cutoff marks: ");
scanf("%d",&cutoffMarks);
printf("Enter HSC mark: ");
scanf("%d",&hsc);
printf("Enter SSLC Mark: ");
scanf("%d",&sslc);
if(age > 18 & cutoffMarks > 79 & hsc > 79 & sslc > 79)
{
printf("\nThe student belongs to 1st Slot of Counseling");
}
else if(age > 18 & cutoffMarks > 69 & hsc > 69 & sslc > 69)
{
printf("\nThe student belongs to 2st Slot of Counseling");
}
else if(age > 18 & cutoffMarks > 50& hsc > 50 & sslc > 50)
{
printf("\nThe student belongs to 3rd Slot Counseling");
}
else
{
printf("\nThe student belongs to 4rd Slot Counseling");
}
getchar();
getchar();
return 0;
}
Comments
Leave a comment