Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started