fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. printf("1. Addition\n2. Subtraction\n3. Multiplication\n4. Division\n5. Increase number1 by 1\n6. Decrease number2 by 2\n\nnum1=\nnum2=");
  6. int a,b;
  7. scanf("%d%d",&a,&b);
  8. float A=a+b,S=a-b,M=a*b,D=(float)a/b,I=a+1,Dec=b-2;
  9. printf("1. %.0f\n2. %.0f\n3. %.0f\n4. %.1f\n5. %.0f\n6. %.0f",A,S,M,D,I,Dec);
  10. }
  11.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Increase number1 by 1
6. Decrease number2 by 2

num1=
num2=1. -1276409984
2. -1276475520
3. -807602048
4. -38955.1
5. -1276442752
6. 32765