Commit 5215790e authored by mary.zaqaryan's avatar mary.zaqaryan

Mary Zaqaryan Exercise_05_06 Version2

parent e195a1a3
......@@ -3,15 +3,15 @@
int
main()
{
double sum = 0;
int sum = 0;
int counter = 0;
while (true) {
int number;
std::cout << "Enter the number or 9999 to quit." << std::endl;
std::cout << "Enter the number or 9999 to quit.";
std::cin >> number;
if (number == 9999) {
if (9999 == number) {
break;
}
......
Enter the number or 9999 to quit.
Enter the number or 9999 to quit.
Enter the number or 9999 to quit.
Enter the number or 9999 to quit.
Enter the number or 9999 to quit.
Enter the number or 9999 to quit.
Average is: 9
Enter the number or 9999 to quit.Enter the number or 9999 to quit.Enter the number or 9999 to quit.Enter the number or 9999 to quit.Enter the number or 9999 to quit.Enter the number or 9999 to quit.Average is: 9
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment