Question: Write a function called displayMessage that prints the incoming message multiple times on separate lines. This function should accept two parameters; one is the message
- Write a function called displayMessage that prints the incoming message multiple times on separate lines.
- This function should accept two parameters; one is the message and the other one is the number of times.
- Print an error message if this function accepts only one parameter for message and no parameter for times.
- Write a complete program to demonstrate how this function works.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
