Computer Science, asked by shembrom96, 15 days ago


3) Write a program to input marks of 5 subjects and display the grade according to the percentage obtain
percentage Grade
85 - 100 A
70 - 84 B
55 - 69 C
40 - 54 D
Below 40 E

Answers

Answered by mandan2706
0

Answer:

#include<studio.h>

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 ");

}

Similar questions