79172191

Date: 2024-11-09 05:56:12
Score: 2
Natty:
Report link
        #include <iostream>

        int main()
        {

            int x = 1;
            int number;
            int total = 0;

            while(x <= 5){
                std::cout << "Please enter a number " << std::endl ;
                std::cin >> number;
                total = total + number;
                x++;
            }

            std::cout << "Your total is " << total << std::endl;

            return 0;
        }

The part that I was forgetting was the enter a number please.

Reasons:
  • RegEx Blacklisted phrase (1): I was forgetting was the enter a number please
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: peabrain