0

Please help me to answer the coding problem I already answered but not sure if it is right or wrong

Write a counter-control program using while statement that will stop once the repetition reach ten times of looping. ​Hint: Assign the variable to 1 and the condition in looping statement less or equal than 10. The coding #include <iostream> using namespace std; int main () { int n=1; while (n<=10) { cout << " EXERCISE NO.4 " << endl; n++; } return 0; }

3rd Feb 2020, 4:09 PM
mamoun hydr
mamoun hydr - avatar
2 Answers
+ 2
mamoun hydr the program looks fine. Do you have any other questions? If not then I would ask you to delete this post because it does not remain a question and qualifies to be mfd for self-answer.
3rd Feb 2020, 4:30 PM
Avinesh
Avinesh - avatar
+ 1
Please share your code so that we can help you :)
3rd Feb 2020, 4:10 PM
Denise Roßberg
Denise Roßberg - avatar