PLEASE HELP ME...
Write a C++ Program...
The "signature" of a function is the first line which gives the return type, the name of the function and the parameters with their types. As an example the signature of the gcd function is
int gcd(int m, int n)
The function multiprint has the following signature.
void multiprint(char c, int n)
The function is required to print n copies of the character c. Write the function.
Input
. 3
Output
...
Input
* 5
Output
*****
Answers
Answered by
2
But I know only Java programing......
sorry bro,plz mark it as brainlist answere
Answered by
1
Answer:
#include <iostream>
using namespace std;
void multiprint(char c, int n)
{
cout << string(n, c);
}
Explanation:
Similar questions