write a program to evalute airthmetic operator +,-,*,%,/
Answers
Answered by
1
In C Language , I wrote this program ;
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f,g;
clrscr();
printf("Enter two Numbers:");
scanf("%d %d",&a,&b);
c=a+b;
d=a-b;
e=a*b;
f=a%b;
g=a/b;
printf("Addition=%d\n",c);
printf("Subtraction=%d\n",d);
printf("Multiplication=%d\n",e);
printf("Division=%d\n",f);
printf("Modulus=%d\n",g);
getch();
}
Similar questions