I am new to c++, i want to try out a program that will be like a game but for solving math problems. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am new to c++, i want to try out a program that will be like a game but for solving math problems.

for example a person will have two choices either to try addition or subtraction. then if they choose addition they should be able to exit from there. for the menu, should I use if statement?

7th Jun 2018, 5:16 AM
Chilala Matimba
Chilala Matimba - avatar
3 Answers
+ 5
Try it. Find out if it works.
7th Jun 2018, 7:11 AM
Manual
Manual - avatar
+ 1
use a while inside a switch statement
7th Jun 2018, 8:07 AM
Suhail Ahmad
Suhail Ahmad - avatar
+ 1
thanks
3rd Jul 2018, 4:22 PM
Chilala Matimba
Chilala Matimba - avatar