What’s for dinner? Let the computer decide. Write a program that generates a random integer that is either 1, 2, 3, or 4 (see the previous Practice Program about generating a random number). Use the random number in either a switch or if statement that outputs ″Pizza″ if the number is 1 or 2, ″Bibimbap″ if the number is 3, and ″Couscous″ if the number is 4.
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.