fork download
  1. /* Helloプログラム ここの部分はコメントですよ!教科書p17のサンプルです*/
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. printf("%d",1+2+3);
  8. printf("今日の気温は%d度です",25);
  9. printf("今日は%d月%d日です",4,28);
  10. printf("%d-%dは%dです。\n",3,2,3-2);
  11. printf("%s %c %f \n", "6÷5", '=', 1.2);
  12. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
6今日の気温は25度です今日は4月28日です3-2は1です。
6÷5 = 1.200000