Question: In C please not C++ 13.22 Functions - Ex2 Write a function named printPattern that takes three arguments: a character and two integers. The character
In C please not C++


13.22 Functions - Ex2 Write a function named printPattern that takes three arguments: a character and two integers. The character is to be printed. The first integer specifies the number of times that the character is to be printed on a line (repetitions), and the second integer specifies the number of lines that are to be printed. Also, your function must return an integer indicating the number of lines multiplied by the number of repetition:s Write a program that makes use of this function. That is in the main function you must read the inputs from the user (the character, and the two integers) and then call your function to do the printing When the input is: The output is Cc Cc Cc The function must return 6 Requirements Read the inputs from the user Declare the prototype of your function before the main function Call your function to do the printing based on the inputs from the user LAB ACTIVITY 13.22.1: Functions - Ex2 5/10 main.c Load default template .. 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
