c program for simple calculator

c program for simple calculator using switch case
c program for switch case

Program:-


Output:-

Enter sign
+
Enter 1st number
5
Enter 2nd number
6
Answer:11

Output:-

Enter sign
-
Enter 1st number
5
Enter 2nd number
6
Answer:-1

Output:-

Enter sign
*
Enter 1st number
5
Enter 2nd number
6
Answer:30

Output:-

Enter sign
/
Enter 1st number
10
Enter 2nd number
2
Answer:5

Output:-

Enter sign
%
Enter 1st number
15
Enter 2nd number
2
Answer:1

One Comment

Add your comments here

Back to Top