Write a program to that performs as calculator (Addition, Multiplication, Division, Subtraction)
In this, we will discuss C Program to Addition Subtraction, Multiplication and division: In this post, we will learn about how to perform addition, subtraction multiplication, division of any two numbers using if else statements in c programming. The program will request the user to enter two number digits and the user select an operator to perform the addition, subtraction, multiplication, and division of the entered number by the user and displays the output on the screen. The program will display the result according to the user selection. Program: #include <stdio.h> #include <conio.h> int main () { int a,b,n,s,m,d; printf ( "Enter the first number :" ); scanf ( " %d " ,&a); printf ( "Enter the second number :" ); scanf ( " %d " ,&b); printf ( " Addition of two number is : %d \n " ,n=a+b ); printf ( "Subtraction of two number is : %d \n " ,s=a-b ...
