0
how to make calculator?
4 Answers
+ 2
you can make a calculator using switch case.
case1: +
case2: -
and so on...
let user input two variables and then choose operation via switch and display result.
0
Firstly u can simply show the menu in which show what are the choices like addition, subtraction n all.. and ask the user to select the choice like â or â.. Then using switch and break u can simply make different cases for â, â etc and write down it's logic there.. Then can make a default case for making wrong input..
0
use arithmetic operation like +,-,*,/,%
- 2
You need object oriented programming for that.