fork download
  1. /* Helloプログラム ここの部分がコメント(注釈、説明)です教科書の17pのサンプル */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. int year;
  8. int month;
  9. int day;
  10.  
  11. year=2025;
  12. month=5;
  13. day=12;
  14.  
  15. printf("今日は%d 年 %d 月 %d です。\n", year, month, day);
  16. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
今日は2025 年 5 月 12 です。