Solved How to make a program that is not exiting after the task?

October 15, 2015 at 10:48:38
Specs: Windows 10
I made a BMI calculator using C.
It works but it can only calculate once.
After that it will exit after I press any key.
I have to run the program again to calculate another BMI.

How do I make the program to calculate as many BMIs as I want and only exit after I press a certain key?


See More: How to make a program that is not exiting after the task?

Report •

#1
October 15, 2015 at 11:31:53
✔ Best Answer
Encase the main logic in a "while" loop which tests the key pressed.

Report •
Related Solutions


Ask Question