Simple calculator in c++ using if else

preview_player
Показать описание
Note: we can also do this program by using switch case

This program takes an arithmetic operator (+, -, *, /) and two operands from an user and performs the operation on those two operands depending upon the operator entered by user.The operator is stored in variable opr and two operands are stored in n1 and n2 respectively.

Then, if...else statements are used for checking the operator entered by user.

This program works similarly for * and / operator. But, if the operator doesn't matches any of the four character [ +, -, * , / and % ], then program will display error message.

create calculator in c++ in hindi
calculator in c++ using if else
simple calculator in c++ using if else
create calculator in c++ in urdu
make calculator in c++ in urdu
make calculator in c++ urdu
c++ calculator program
making calculator in c++
make calculator in c++ in hindi
make basic calculator in c++
#Howtomakecalculatorincplusplus, #Calculatorincplusplus, #Calculator
Рекомендации по теме