#include <stdio.h>
int main()
{
int year = 2014; //今年是2014年
//补全一下代码
if(year%4 == 0)
{
if(year%100!=0)
{
printf("今年是闰年");
}
else
{
printf("今年是平年");
}
}
else
{
printf("今年是平年");
}
int main()
{
int year = 2014; //今年是2014年
//补全一下代码
if(year%4 == 0)
{
if(year%100!=0)
{
printf("今年是闰年");
}
else
{
printf("今年是平年");
}
}
else
{
printf("今年是平年");
}
2022-01-28
最新回答 / bb1234
#include <stdio.h>#define N 10int main(){ int score[N]={67,98,75,63,82,79,81,91,66,84}; int i,j; int Max=0,Min=score[0],temp; float Mid=0,Sum=0; for(i=0;i<N;i++)Sum+=score[i]; //总成绩 Mid=Sum/N;//平均分 for(i=0;i<N;i++) { ...
2022-01-28
#include <stdio.h>
int main(){
int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年%d岁\n", age);
printf("小明身高%f%c\n", height, unit);
printf("小明现在在慕课网上学习IT技术");
return 0;
}
int main(){
int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年%d岁\n", age);
printf("小明身高%f%c\n", height, unit);
printf("小明现在在慕课网上学习IT技术");
return 0;
}
2022-01-23
最新回答 / bb1234
#include <stdio.h>#define N 10int main(){ int score[N]={67,98,75,63,82,79,81,91,66,84}; int i,j; int Max=0,Min=score[0],temp; float Mid=0,Sum=0; for(i=0;i<N;i++)Sum+=score[i]; //总成绩 Mid=Sum/N;//平均分 for(i=0;i<N;i++) { ...
2022-01-19
return 15.6+(m-3)*2.3;
}
}
int main()
{
int num;
num=Time(9,12);
printf("小明每天打车的总费用为%d元",num+num);
return 0;
}
}
}
int main()
{
int num;
num=Time(9,12);
printf("小明每天打车的总费用为%d元",num+num);
return 0;
}
#include <stdio.h>
int Time(int n,int m)
{
if(0<n<5||23<n<24&&m<=3)
{
return 15.6;
}
else if(5<=n<=23&&m<=3)
{
return 13;
}
else if(0<n<5||23<n<24&&m>3)
{
return 15.6+(m-3)*1.2*2.3;
}
else if(5<=n<=23&&m>3)
{
int Time(int n,int m)
{
if(0<n<5||23<n<24&&m<=3)
{
return 15.6;
}
else if(5<=n<=23&&m<=3)
{
return 13;
}
else if(0<n<5||23<n<24&&m>3)
{
return 15.6+(m-3)*1.2*2.3;
}
else if(5<=n<=23&&m>3)
{