#include<stdio.h>#include<conio.h>
void main() {
int a,b,c;
int a,b,c;
float d;
clrscr();
printf("Enter two whole numbers:\n");
scanf("%d%d",&a,&b);
c=a+b;
printf("\nSum=%d",c);
c=a-b;
printf("\nDiffference=%d",c);
c=a*b;
printf("\nMultiplication=%d",c);
d=(float)a/b;
printf("\nDivision=%f",d);
getch();
}
0 comments:
Post a Comment