fork download
  1. #include<stdio.h>
  2.  
  3. #include<math.h>
  4.  
  5. main(){
  6.  
  7. printf("%d\n",10+8);
  8.  
  9. printf("%f\n",10+8.0);
  10.  
  11. printf("%f\n",10.0+8);
  12.  
  13. printf("%f\n",5.0+2*3-5);
  14.  
  15. printf("%f\n",5.0+(2*3)-5);
  16.  
  17. printf("%f\n",((5.0+2)*3)-5);
  18.  
  19. printf("%f\n",-10+3-10.0/2-2*3);
  20.  
  21. printf("%f\n",-10+3-(10.0/2)-(2*3));
  22.  
  23. printf("%f\n",pow(3,2));
  24.  
  25. printf("%d\n",pow(3,2));
  26.  
  27. }
Success #stdin #stdout 0.01s 5268KB
stdin
Standard input is empty
stdout
18
18.000000
18.000000
6.000000
6.000000
16.000000
-18.000000
-18.000000
9.000000
0