Class Coordinator of the section 01 wants to select the student class representative. A student is eligible to become class representative if he/she has scored minimum of 75% in 12th Standard and less than 15K ranking in the entrance test.
A software needs to be developed to help Class coordinator to select the class representative.
1. Students rank in entrance test should be captured.
2. Students 12th percentage should be captured.
3. Check if rank is less than 15k and 12th percentage is more than 75%
4. If both the criteria is true, Display Eligible.
5. If any one of the criteria is false, Display Not Eligible.
#include<stdio.h>
int main(){
printf("Enter students rank in entrance test: \n");
int rank;
scanf("%d", &rank);
printf("Enter students 12th percentage: \n");
int marks;
scanf("%d", &marks);
if(rank<15 && marks>75){
printf("Eligible");
}
else{
printf("Not Eligible");
}
}
Comments
Leave a comment