#include<stdio.h>
int main(void){
int attendance;
printf("Enter your attendance in percentage:");
scanf("%d", &attendance);
if(attendance >100)
printf("Enter the value between 0 and 100\n");
else if( attendance>=95)
printf("Your internal mark is 5\n");
else if( attendance>=90 &&attendance<95)
printf("Your internal mark is 4\n");
else if( attendance>=85 && attendance<90)
printf("your internal mark is 3\n ");
else if( attendance >=80 && attendance <85)
printf("your internal mark is 2\n");
else if(attendance >=75 && attendance <88)
printf("your internal mark is 1\n");
else
printf("your internal mark is 0, you are not eligible for appearing semester exam.\n");
return 0;
}
run in userdefine ???
Answers
Answered by
0
Answer:
#include<stdio.h>
int main(void){
int attendance;
printf("Enter your attendance in percentage:");
scanf("%d", &attendance);
if(attendance >100)
printf("Enter the value between 0 and 100\n");
else if( attendance>=95)
printf("Your internal mark is 5\n");
else if( attendance>=90 &&attendance<95)
printf("Your internal mark is 4\n");
else if( attendance>=85 && attendance<90)
printf("your internal mark is 3\n ");
else if( attendance >=80 && attendance <85)
printf("your internal mark is 2\n");
else if(attendance >=75 && attendance <88)
printf("your internal mark is 1\n");
else
printf("your internal mark is 0, you are not eligible for appearing semester exam.\n");
return 0;
}
Similar questions