Skip to main content
- sum of 5 subjects marks and find percentage
- int s1, s2, s3,s4,s5,sum,total=500;
- printf("\n enter mark of 5 subjects");
- scanf("%d%d%d%d%d",&s1,&s2,&s3,&s4,&s5);
- printf("\n sum : %d"|,sum);
- per = (sum * 100 ) / total ;
- printf("\n percentage : %f ",per);