當前位置:編程學習大全網 - 編程軟體 - 編程輸入天數

編程輸入天數

# include & ltstdio.h & gt

主()

{

int n;

Printf("請輸入2005年的任意月份(輸入Q退出):");

while(scanf("%d ",& ampn)==1)

{

開關(n)

{

Case 1:printf("本月有31天\ n ");打破;

案例二:printf("本月有28天\ n ");打破;

案例三:printf("本月有31天\ n ");打破;

案例四:printf("本月有30天\ n ");打破;

案例五:printf("本月有31天\ n ");打破;

案例6:printf("本月有30天\ n ");打破;

案例7:printf("本月有31天\ n ");打破;

案例8:printf("本月有31天\ n ");打破;

案例9:printf("本月有30天\ n ");打破;

案例10:printf("本月有31天\ n ");打破;

Case 11:printf("本月有30天\ n ");打破;

案例12:printf("本月有31天\ n ");打破;

}

Printf("請輸入2005年的任意月份(輸入Q退出):");

}

返回0;

}

  • 上一篇:c++編程的簡介
  • 下一篇:剛性刀柄攻絲用的柔性攻絲指令會出現啥情況
  • copyright 2024編程學習大全網