sajjad result

EMBED

Sun Sep 24 2023 13:02:47 GMT+0000 (Coordinated Universal Time)

Saved by @musmanhamed #c


#include<stdio.h> int main() { int a,b,c,d,e,f,g,h; float i,j; printf("plz enter math marks"); scanf("%d",&a); printf("urdu marks"); scanf("%d",&b); printf("eng marks"); scanf("%d",&c); printf("chem marks"); scanf("%d",&d); e=((float)a/100 *100); f=((float)b/100 *100); g=((float)c/100 *100); h=((float)d/100 *100); printf("the percentage of math,urdu,eng,chem is %d%,%d%,%d%,%d%",e,f,g,h); j=e+f+g+h; i = ((float)j/400 *100); printf("the total percentage is %f%",i);

https://www.programiz.com/c-programming/online-compiler/