C program to perform arithmetic operations.

#include<stdio.h>
#include<conio.h>
void main()
{
 clrscr();
 int a, b, res;
 printf("Enter two number :");
 scanf("%d%d",&a,&b);
 res=a+b;
 printf("\nAddition = %d",res);
 res=a-b;
 printf("\nSubtraction = %d",res);
 res=a*b;
 printf("\nMultiplication = %d",res);
 res=a/b;
 printf("\nDivision = %d",res);
 getch();
}
C program to perform arithmetic operations. C program to perform arithmetic operations. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.