Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     float b1,b2,b3,tb;
  6.    
  7.     printf("First Excercise: ");
  8.     scanf("%f\n",&b1);
  9.    
  10.     printf("Second Excercise: ");
  11.     scanf("%f\n",&b2);
  12.    
  13.     printf("Third Excercise: ");
  14.     scanf("%f\n",&b3);
  15.    
  16.     tb = 0.15*b1+0.35*b2+0.5*b3;
  17.    
  18.     printf("Final Grade is: %.2f\n\n",tb);
  19.    
  20.     system("PAUSE");
  21.    
  22.     return 0;
  23.    
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement