#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
int a;
a=year%4;
if(a>0)
{
printf("%s\n","今年是平年");
}
else
{
printf("%s\n","今年不是平年");
}
return 0;
}
int main()
{
int year = 2014; //今年是2014年
int a;
a=year%4;
if(a>0)
{
printf("%s\n","今年是平年");
}
else
{
printf("%s\n","今年不是平年");
}
return 0;
}
2022-02-14
#include <stdio.h>
int main()
{
int height = 185;
if(height>=180)
{
printf("%s\n","恭喜小明可以参加校篮球队");
}
if(height<180)
{
printf("%s\n","很遗憾,小明不能参加校篮球队");
}
return 0;
}
int main()
{
int height = 185;
if(height>=180)
{
printf("%s\n","恭喜小明可以参加校篮球队");
}
if(height<180)
{
printf("%s\n","很遗憾,小明不能参加校篮球队");
}
return 0;
}
2022-02-13
#include <stdio.h>
int main()
{
int a,b,c,d;
a =1;
b =2;
c =3;
d =4;
int result;
result =a+b-c+d; //在这里体验哦~
printf("%d\n", result);
return 0;
}
int main()
{
int a,b,c,d;
a =1;
b =2;
c =3;
d =4;
int result;
result =a+b-c+d; //在这里体验哦~
printf("%d\n", result);
return 0;
}
2022-02-12
最新回答 / sixsix232
#include <stdio.h>int main() {int sale=120; //销售业绩为120万int year=1; //刚刚进入公司1年 //完善代码if(sale>100){ if(year>=2) { printf("%s\n","成功"); } printf("%s\n","很遗憾,期望你再接再厉");}else{ printf("%s\n","很遗憾,期望你再接再厉");} return 0;}
2022-02-10