C Program for Addition, Subtraction, Multiplication & Division
The C language is a structured oriented programming language, developed at Bell Laboratories by Dennis Ritchie and Brian Kernighan.
See also - History of C language, C Program for Addition, C program for Subtraction, C program for Multiplication.
Downlaod Turbo C software from the following link - https://docs.google.com/file/d/0B0OYNqLoqKCWbkZLWnNTc1dNZk0/edit
Program to Add, Subtract, Multiply and Divide -
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,d,e,f;
clrscr();
printf("Enter the First number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
printf("Addition is = %d\n",c);
printf("Subtraction is = %d\n",d);
printf("Multiplication is = %d\n",e);
printf("Division is = %d\n",f);
getch();
}
Source - Atcaph
Comments
Post a Comment