#include
/* Perform arithmetic with two integer numbers */
int main(int argc, char *argv[])
{
int a,b,c; // a and b are the numbers to be added, c is the sum
a= 3;
b= 2;
c= a+b;
printf ("%d + %d = %d\n",a,b,c);
/* Now subtraction */
c= a - b;
printf ("%d - %d = %d\n",a,b,c);
/* We could also do the arithmetic "in" the print statement */
printf ("%d * %d = %d\n",a,b,a*b);
/* Division does not get the answer we want -- but why? */
c= a/b;
printf ("%d / %d = %d\n???\n",a,b,c);
return 0;
}