Question: I need help fixing this code. Its supposed to loop back to the beginning and continue to loop until the user doesnt input a character.
I need help fixing this code. Its supposed to loop back to the beginning and continue to loop until the user doesnt input a character.
Though I cant seem to make it work, the challenging part is were not supposed to use ifcondintional statements or breaks only loops and something called an EOF.
#include
int mainvoid
char userChar;
int inputHeight, inputWidth;
printfEnter a character: ;
scanfc & userChar;
printf
Now let's draw a rectangle with your c
userChar;
printf
Enter two integers one for length, one for height: ;
scanfd d &inputHeight, &inputWidth;
printf
You entered d and d
inputHeight, inputWidth;
for int i ; i inputHeight; i
for int j ; j inputWidth; j
printfci i inputHeight j j inputWidth userChar : ;
printf
;
return ;
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
