Question: Refer to the code given below. #include stdio.h> int main(void) char c; int num, i; printf(Enter the character you like to print: ); scanf( %c,
Refer to the code given below. #include stdio.h> int main(void) char c; int num, i; printf("Enter the character you like to print: "); scanf(" %c", &c); printf("Enter the number of lines you want to print: "); scanf ("Sd", &num); for(i-1,1)snum; i++) printf("* %c * ", c); return e; Assume that the user has entered the below data: Enter the character you like to print: # Enter the nunber of characters you want to print: 3 What will be the output of the above code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
