Programming Resource
  arithmetic.c
 
#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;
}
 
 
  Today, there have been 5 visitors (5 hits) on this page!  
 
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free