Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- void main ()
- {
- float a,b,c,d,e,sum;
- int x,y //for string
- printf ("Enter 5 grades /n");
- scanf ("%f %f %f %f %f",&a,&b,&c,&d,&e);
- sum = (a+b+c+d+e)/5
- if (sum>55)
- {
- for (x=1;x<=10;x++)
- printf ("Well done");
- }
- else
- {
- for (y=1;y<=5;y++)
- printf ("Fail");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement