Question: *****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE CONIO****** Program #2 (id: 167877) Create a function repcharlchar ch, int n) that has two default arguments.

 *****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE "CONIO"****** Program #2

*****PLEASE DO THIS PROBLEM IN C++*****DO NOT USE "CONIO"******

Program #2 (id: 167877) Create a function repcharlchar ch, int n) that has two default arguments. You can define the default arguments in either the function prototype or the function definition (if you do not use a prototype for your function) The function will display the character in ch, n number of times. Use as the default argument for ch and 45 as the default argument for n Call repchar three times in the main function as follows: 1. With no arguments 2, as the single argument 4, and 30 as the arguments 3, Do not print anything else from your function. Sample Output: Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!