Advertisement
hendgo12

Untitled

Oct 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int score1, score2, score3, avg, lowavg;
  10.  
  11. int count = 1;
  12. while (count <= 10)
  13. {
  14. cout << "What was the scores of your last 3 bowling games?\n";
  15. cin >> score1 >> score2 >> score3;
  16. avg = (score1 + score2 + score3) / 3;
  17. cout << "Your average is " << avg << '\n';
  18.  
  19. count += 1;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement