int number1, number2, addition, subtraction, multiply;
printf("Enter Number 1\n");
printf("Enter Number 2\n");
addition = number1 + number2 ;
subtraction = number1 - number2;
multiply = number1 * number2;
divide = number1 / (float)number2; //typecasting
printf("Addition = %d\n",addition);
printf("Subtraction = %d\n",subtraction);
printf("Multiplication = %d\n",multiply);
printf("Division = %.2f\n",divide);
0 Comments