#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int x, y, result;
printf("\n Enter two number :");
scanf("%d%d",&x,&y);
result=x+y;
printf("\n Addition = %d",result);
result=x-y;
printf("\n Subtraction = %d",result);
result=x*y;
printf("\n Multiplication = %d",result);
result=x/y;
printf("\n Division = %d",result);
getch();
}
Run1:
Previous Next
#include<conio.h>
void main()
{
clrscr();
int x, y, result;
printf("\n Enter two number :");
scanf("%d%d",&x,&y);
result=x+y;
printf("\n Addition = %d",result);
result=x-y;
printf("\n Subtraction = %d",result);
result=x*y;
printf("\n Multiplication = %d",result);
result=x/y;
printf("\n Division = %d",result);
getch();
}
Run1:
Previous Next
No comments:
Post a Comment