Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <fstream>
- using namespace std;
- int main()
- {
- int score1, score2, score3, avg, lowavg;
- int count = 1;
- while (count <= 10)
- {
- cout << "What was the scores of your last 3 bowling games?\n";
- cin >> score1 >> score2 >> score3;
- avg = (score1 + score2 + score3) / 3;
- cout << "Your average is " << avg << '\n';
- count += 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement