Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Ok so I am having a really hard time with just the last part of my code. If y is entered then the whole code
Ok so I am having a really hard time with just the last part of my code.
If y is entered then the whole code should repeat itself.
If n is entered then the program should stop (THAT IS WHERE I AM HAVING THE HARDEST TIME TO GET THE PROGRAM TO STOP ALL TOGETHER I KEEP GETTING AN ERROR)
And if a letter other than y or n is entered then the code has to continuously ask to enter a valid input.
Please make sure your code works by trying it out, thank you!
while (letterToContinueOrStop != 88 letterToContinueOrStop !'n') { rintf("Enter a valid inputln"); rintf( ("Hould you like to perform another calculation? (y)" scanf(" %c", &letterToContinueOrStop); rintf("In"); while (letterToContinueOrStopy return main)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