If the user enters a number that is not on the interval


Given the following code, write a WHILE or DO-WHILE loop that prompt the user for a value on [0, 10]. If the user enters a number on this interval, continue with the program. If the user enters a number that is not on the interval, informatively re-prompt until the user enters an appropriate number.

#include
using namespace std;

int main() {
int i = 0, j = 0;

// YOUR CODE GOES HERE

return 0;
}

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: If the user enters a number that is not on the interval
Reference No:- TGS0645526

Expected delivery within 24 Hours