Write a program to find the students list who are allocated for a specific counselling slot based on the student’s Cutoff marks, Age, HSC and SSLC marks.
#include<stdio.h>
int main(){
printf("\nEnter Cutoff marks: ");
int cut;
scanf("%d",&cut);
printf("\nEnter students age: ");
int age;
scanf("%d",&age);
printf("Enter the HSC mark: ");
int hsc ;
scanf("%d", &hsc);
printf("Enter SSLC Mark: ");
int sslc;
scanf("%d", &sslc);
if(age > 18 & cut > 79 & hsc > 79 & sslc > 79)
{
printf("\nStudent belongs to first Slot of Counseling");
}
else if(age > 18 & cut > 69 & hsc > 69 & sslc > 69)
{
printf("\nStudent belongs to second Slot of Counseling");
}
else if(age > 18 & cut > 50& hsc > 50 & sslc > 50)
{printf("\nStudent belongs to third Slot Counseling");
}
else
{
printf("\nStudent belongs to fourth Slot Counseling\n");
}
}
Comments
Leave a comment