write a program to calculate the status (pass/fail) of examination petcentage scored
Answers
Answered by
2
Answer:
#include <stdio.h>
int main(void){
int num;
printf("Enter your mark ");
scanf("%d",&num);
printf(" You entered %d", num); // printing outputs
if(num >= 80){
printf(" You got A grade"); // printing outputs
}
else if ( num >=60){ // Note the space between else & if
printf(" You got B grade");
}
else if ( num >=40){
printf(" You got C grade");
}
else if ( num < 40){
printf(" You Failed in this exam");
}
return 0;
}
Answered by
1
Answer:
to mai kya karu bhai tu apna dekh na
Similar questions