27.9.14

OOP : Excercise-1 : Arithmetic Operators with operands as input

Write a program performing as calculator which allows all Arithmetic Operators with operands as input

1. Write a C program for performing as calculator which allows all Arithmetic Operators with operands from terminal. Few Input and Output sample are given below:
Recommended: Study Char/Char Array in C/C++           
       
            Sample Input: 1 + 4
            Sample Output: 5
            Sample Input: 8 % 2
            Sample Output: 0
            Sample Input: 6 / 2
            Sample Output: 3
            Sample Input: 5 / 2
            Sample Output: 2.5