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

One Comment

  1. Really cool post, highly informative and professionally written and I am glad to be a visitor of this perfect blog, thank you for this rare info!
    Java Training in Bangalore|

    ReplyDelete

Add your comments here

Back to Top