i need to create a calculator with c++ with ( while +×÷%) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

i need to create a calculator with c++ with ( while +×÷%)

31st Oct 2016, 4:20 PM
Joan López
Joan López - avatar
4 Answers
0
player
31st Oct 2016, 4:28 PM
Zarma Mohammed
Zarma Mohammed - avatar
0
char continue = 'y'; int Number1, Number2 char Operator; while(continue == 'y' || continue == 'Y'){ cin >> Number1; cin >> Operator; cin >> Number2; if(Operator == '+') {...} . . . else if (...){ } cin >> continue; // if user input is y Or Y then continue else exit }
31st Oct 2016, 5:42 PM
Khaled Sayed
Khaled Sayed - avatar
0
use switch dear and match these character cases
1st Nov 2016, 2:27 AM
●●● Kushagra ♡¿♡¿
●●● Kushagra  ♡¿♡¿ - avatar
0
Where is a question?
29th Oct 2018, 2:22 PM
YuriiRG