Commit 120ff93a authored by mary.zaqaryan's avatar mary.zaqaryan

Mary Zaqaryan Exercise_05_05 Version3

parent 18c2eee2
......@@ -4,7 +4,7 @@ int
main()
{
int amount;
std::cout << "Enter the amount of numbers.";
std::cout << "Enter the amount of numbers: ";
std::cin >> amount;
if (amount < 0) {
......@@ -16,7 +16,7 @@ main()
for (int i = 1; i <= amount; ++i) {
int number;
std::cout << "Enter number.";
std::cout << "Enter number: ";
std::cin >> number;
sum += number;
}
......
Enter the amount of numbers.Enter number.Enter number.Enter number.Enter number.Enter number.Sequence of integers is 1500
Enter the amount of numbers: Enter number: Enter number: Enter number: Enter number: Enter number: Sequence of integers is 1500
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