C program to perform the arithmetic operations by accepting the inputs
Algorithm
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to perform arithmetic operations ——————————————————————————————————————————— Enter the 1st number 25 Enter the 2nd number -5 ——————————————————————————— Addition | 20.000000 Subtraction | 30.000000 Multiplication | -125.000000 Division | -5.000000 ——————————————————————————— Average of two numbers is 10.000000 ——————————————————————————————————————————— 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