Respuesta :
Answer:
#include<iostream>
using namespace std;
int main()
{
int userNum;
userNum=9;
while(userNum>=0)
{
cout<<"Body"<<endl;
cin>>userNum;
}
cout<<"Done"<<endl;
return 0;
}
Explanation:
- Use the userNum >= 0 expression that executes the loop while the user enters a number greater than or equal to 0.
- Print the userNum inside the while loop.
Loops are repeated program statements
The expression for the while loop in Python, where comments are used to explain each line is as follows is:
#This gets input for the number
num = int(input())
#This is repeated while the input is 0 or more
while num>=0:
#This gets another input
num = int(input())
Read more about loops at:
https://brainly.com/question/19344465