Module: (C++) Loop statement with condition - while


Problem

8/21

Digits of the number - 3 - we fix the program

Problem

Let's try to fix the previous task.
To do this, you must save the original number, even in some variable, for example n1.
In this case, the original value will not be lost, and in the output we can display the stored value.
To do this, do the following:
1. In the 4th line, declare the variable n1
2. In the 7th line, the value n is stored in the variable n1
3. In the output statement in the 12th line, replace the output of the value of the variable n with the output of the value of the variable n1
4. Run the program, see the result of its work.