亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

如果將2014改成任意輸入應該怎么打 我寫的運行不出來啊

#include <stdio.h>

int main()?

{

? ? int year ;?

? ? scanf("%d",year);

? ? if(year%4==0&&year%100!=0||year%400==0)

? ? {

? ? ? ? printf("%s\n","今年是閏年");

? ? }

? ? else

? ? {

? ? ? ? printf("%s\n","今年是平年");

? ? }

? ? return 0;

}


正在回答

2 回答

http://shennizuidongqiu.com

http://feidaotuiqiu.me

http://dazhuokaiche.com

http://fds501.cc

http://fdq602.cc

http://fdw703.cc

http://fdw805.cc

http://fdw907.cc

http://zsn132.cc

http://zsn143.cc

http://zsn243.cc

http://zsn343.cc

http://zsn443.cc

http://zsn543.cc

http://zsn643.cc

http://msk121.cc

http://msk127.cc

http://msk129.cc

http://msk130.cc

http://zdzkc108.cc

http://zdzkc219.cc

http://zdzkc229.cc

http://zdzkc239.cc

http://zdzkc241.cc

http://dddsaa331.cc

http://dddsaa332.cc

http://dddsaa333.cc

http://dddsaa336.cc

http://dddsaa328.cc


0 回復 有任何疑惑可以回復我~

判斷條件應該是:(? year%400==0? ? &&? ? year%==0 || year%100!=0? )

0 回復 有任何疑惑可以回復我~
#1

慕娘4448756 提問者

我找到問題了 出現在scanf("%d",&year); hhhhhhhh
2020-11-16 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

如果將2014改成任意輸入應該怎么打 我寫的運行不出來啊

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號