C++ program to perform arithmetic operations by accepting inputs from a user
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to perform the arithmetic operations ——————————————————————————————————————————— Enter the 1st number 1 Enter the 2nd number 0 —————————————————————————— Addition | 1+0=1 Subtraction | 1-0=1 Multiplication | 1*0=0 Division | 1/0=inf —————————————————————————— Average of 2 numbers is 0.5 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C++ program to calculate the area and circumference of a circle
C++ program to find the size of data types
C++ program to find the range of data types
Advertisement