If you executed the following code, what would it display if the user enters 5? What if the user enters 15? What if the user enters 30? What if the user enters −1?
int number;cout ≪ "Enter a number: ";cin ≫ number;if (number > 0){ cout ≪ "Zero\n"; if (number > 10) { cout ≪ "Ten\n"; if (number > 20) { cout ≪ "Twenty\n"; } }}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.