Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float b1,b2,b3,tb;
- printf("First Excercise: ");
- scanf("%f\n",&b1);
- printf("Second Excercise: ");
- scanf("%f\n",&b2);
- printf("Third Excercise: ");
- scanf("%f\n",&b3);
- tb = 0.15*b1+0.35*b2+0.5*b3;
- printf("Final Grade is: %.2f\n\n",tb);
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement