Question: string messages[5]={ Be safe , Study more, Help others, Go to movie, Go to Los Vegas}; Write a complete program to repeat 10 times, each
string messages[5]=\{ "Be safe ", "Study more", "Help others", "Go to movie", "Go to Los Vegas"\}; Write a complete program to repeat 10 times, each time generate a random number between 0 and 4 to display one of the above messages. Which of the messages displayed more than others? May be only ONE message, or may be more than one messages displayed more than others. Somple input Be safe CONTINUE (y) ? Help others CONTINUE(y)? Y Be safe CONTINUE (y) ? n The messages Be safe Help other dlsplayed more often
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
