fork download
  1. #include <stdio.h>
  2.  
  3. struct date{
  4. int year;
  5. int month;
  6. int day;
  7. };
  8.  
  9. int main(void) {
  10.  
  11. struct date today={2025,12,18};
  12.  
  13. printf("今日の日付は%d年%d月%d日です",today.year,today.month,today.day);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
今日の日付は2025年12月18日です