1.

3) Write a program to input marks of 5 subjects and display the grade according to the percentage obtainpercentage Grade85 - 100 A70 - 84 B55 - 69 C40 - 54 DBelow 40 E​

Answer»

Answer:

#include

void main()

{

int sub1,sub2,SUB3,sub4,sub5;

int option,I;

printf("enter the 5 subject marks");

SCANF("%d %d %d %d %d ", &sub1 ,&sub2 ,&sub3 ,&sub4 ,&sub5);

if(100<=I !! i>=80)

printf(" A grade ");

if(84<=I !! I>=70)

printf(" B grade ");

if(69<=I !! I>=55)

printf(" C garde");

if( 54<=I !! I>=40)

printf(" D garde");

else

printf (" E garde ");

}



Discussion

No Comment Found