c++ program for simple calculator

c++ program for simple switch case

c++ program for character in switch case

Program:-


Output:-

Enter sign
+
Enter 1st number
18
Enter 2nd number
6
Answer:24

Output:-

Enter sign
-
Enter 1st number
23
Enter 2nd number
6
Answer:17

Output:-

Enter sign
*
Enter 1st number
12
Enter 2nd number
2
Answer:24

Output:-

Enter sign
/
Enter 1st number
49
Enter 2nd number
7
Answer:7

Output:-

Enter sign
%
Enter 1st number
23
Enter 2nd number
3
Answer:2

Leave reply

Add your comments here

Back to Top