Write a program to find the counseling slot based on the student's Cutoff marks, age, HSC and SSLC marks
#include<stdio.h>
int main(){
int cutOffMarks, age, hscMarks,sslcMarks;
printf("Please enter the obtained cutOff marks:\n");
scanf("%d",&cutOffMarks);
printf("Please enter the age: \n");
scanf("%d",&age);
printf("Please enter the hscMarks: \n");
scanf("%d",&hscMarks);
printf("Please enter the sslcMarks: \n");
scanf("%d",&sslcMarks);
printf("Obtained marks:%d \n",cutOffMarks);
printf("Obtained marks:%d \n",age);
printf("Obtained marks:%d n",hscMarks);
printf("Obtained marks:%d \n",sslcMarks);
if(cutOffMarks>80){
printf("Alloted in slot 1");
}else if(80>cutOffMarks>50){
printf("Alloted in slot 2");
}else if(cutOffMarks<50){
printf("Alloted in slot 1");
}
return 0;
}
Comments
Leave a comment