fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("%d\n", 0 - 4);
  5. printf("%.2f\n", 3.14 * 2);
  6. printf("%.2f\n", 5.0 / 3); // 5.0 にして小数として計算
  7. printf("%d\n", 30 % 7);
  8. printf("%.2f\n", (7 + 32) / 5.0); // 5.0 にして小数として計算、末尾に \n を追加
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
-4
6.28
1.67
2
7.80