1个回答
展开全部
1.
#include <stdio.h>
int main() {
for (int i = 1; i <= 7; i++) {
printf("每周第%d天是星期%d\n", i, i);
}
return 0;
}
2.
#include <stdio.h>
int main() {
int a = 10, b = 3, x, y;
printf("a/b=%d\ta%%b=%d\tx=%d\ty=%d\n", a / b, a % b, x = a++, y = ++b);
printf("a=%d\tb=%d\tx=%d\ty=%d\n", a, b, x, y);
return 0;
}
3.
#include <stdio.h>
int main() {
int a = 8, b = 5;
//printf("a=%d\n",5>4);
printf("a=%d\n", 5 < 4);
//printf("a=%d\n",a!=8);
printf("a=%d\n", a == 8);
//printf("a=%d\n",a>=b);
printf("a=%d\n", a < b);
return 0;
}
上课认真听
#include <stdio.h>
int main() {
for (int i = 1; i <= 7; i++) {
printf("每周第%d天是星期%d\n", i, i);
}
return 0;
}
2.
#include <stdio.h>
int main() {
int a = 10, b = 3, x, y;
printf("a/b=%d\ta%%b=%d\tx=%d\ty=%d\n", a / b, a % b, x = a++, y = ++b);
printf("a=%d\tb=%d\tx=%d\ty=%d\n", a, b, x, y);
return 0;
}
3.
#include <stdio.h>
int main() {
int a = 8, b = 5;
//printf("a=%d\n",5>4);
printf("a=%d\n", 5 < 4);
//printf("a=%d\n",a!=8);
printf("a=%d\n", a == 8);
//printf("a=%d\n",a>=b);
printf("a=%d\n", a < b);
return 0;
}
上课认真听
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询