Question: In lecture we looked at a go - again loop which defaulted to no ; that is , unless y or Y ,
In lecture we looked at a goagain loop which defaulted to no; that is unless y or Y the loop exits:
char resp ;
while respy respY
processing...
printf "InEnter another input? yn;
the space preceding the c tells scanf to skip whitespace
scanfc &resp ;
Modify this code so that the default is to go again, only exiting when or is entered.
Q Put this code segment in your labsheet.
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
