Online+C+Compiler

EMBED

Sat Sep 23 2023 13:20:48 GMT+0000 (Coordinated Universal Time)

Saved by @musmanhamed #c


#include <stdio.h> int main() { int a,b,c,d,e,f,z; float g,h,i,j,k,l,m,n; printf("ENGLISH.\n"); scanf("%d",&a); printf("PHYSICS.\n"); scanf("%d",&b); printf("CHEMISTRY.\n"); scanf("%d",&c); printf("BIOLOGY.\n"); scanf("%d",&d); printf("URDU.\n"); scanf("%d",&e); printf("ISLAMIAT.\n"); scanf("%d",&f); g=((float)a/100)*100; h=((float)b/85)*100; i=((float)c/85)*100; j=((float)d/85)*100; k=((float)e/100)*100; l=((float)f/50)*100; printf("\npercentage in english is %.2f%%",g); printf("\npercentage in physics is %.2f%% ",h); printf("\npercentage in chemistry is %.2f%%",i); printf("\npercentage in biology is %.2f%% ",j); printf("\npercentage in urdu is %.2f%%",k); printf("\npercentage in islamiat is %.2f%%",l); z=a+b+c+d+e+f; m=((float)(a+b+c+d+e+f)/505); n=((float)m*100); printf("\ntotal marks out of 505 are %d",z); printf("\nyour percentage is %.2f%%",n); return 0; }

undefined