fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4.  
  5. float a, b, x, pi;
  6. printf ("ENTER 1ST NUMBER: ");
  7. scanf ("%f",&a);
  8. printf ("ENTER 2ND NUMBER: ");
  9. scanf ("%f",&b);
  10. printf ("\nHERE ARE THE ANSWERS\nAddition: %f\n",a+b);
  11. printf ("Substraction: %f\n",fabs(a-b));
  12. printf ("Multiplication: %f\n",a*b);
  13. printf ("Division: %f\n",a/b);
  14. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
ENTER 1ST NUMBER: ENTER 2ND NUMBER: 
HERE ARE THE ANSWERS
Addition: -34853458280448.000000
Substraction: 34853458280448.000000
Multiplication: -0.000000
Division: -inf