#include<stdio.h> int main() { int a=0,b=0; printf("Enter first number : "); scanf("%i",&a); printf("Enter second number : "); scanf("%i",&b); printf("%5i + %5i = %15i\n",a,b,a+b); printf("%5i - %5i = %15i\n",a,b,a-b); printf("%5i * %5i = %15i\n",a,b,a*b); printf("%5i / %5i = %15i\n",a,b,a/b); printf("%5i %% %5i = %15i\n",a,b,a%b); getch(); return 0; }
|