Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions