Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- float test = 0;
- float number = 0;
- float gpa = 0;
- float avarage = 0;
- do
- {
- printf("Number of Test:%.0f Avarage : %.2f \n",test,avarage);
- scanf("%f",&number);
- gpa+=number;
- test++;
- avarage = gpa/test;
- }while(number !=0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement