摘要: #include <stdio.h>int main(){ int a=0; for(a=100;a>0;a--) { if(a%3==0) { printf("%d\n",a);} }return 0; } 阅读全文
posted @ 2022-11-11 21:42 程碗饭 阅读(95) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main(){ int a= 0; int b= 0; int c= 0; scanf("%d%d%d", &a, &b, &c); if(a<b) { int tmp=a; a=b; b=tmp; } if(a<c) { int tmp=a; a=c; 阅读全文
posted @ 2022-11-10 21:17 程碗饭 阅读(64) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <string.h>#include <windows.h> #include <stdlib.h>int main(){char arr1[]="xcsdsghhhh";char arr2[]="??????????";int left =0; 阅读全文
posted @ 2022-11-09 20:50 程碗饭 阅读(35) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main(){int i=0;char password[20]={0};for(i=0;i<2;i++){ printf("请输入密码:"); scanf("%s",password); if(strcmp(password,"520417")==0){ 阅读全文
posted @ 2022-11-08 20:33 程碗饭 阅读(50) 评论(0) 推荐(0)
摘要: #include<stdio.h>int main() { int d=0; for(d=60;d>=0;d--) { if(d>=40){ printf("%d红灯",d); }else if(d>20&&d<40){ printf("%d绿灯",d); } else if(d<20){ prin 阅读全文
posted @ 2022-11-07 00:25 程碗饭 阅读(148) 评论(0) 推荐(0)
摘要: 1. #include<stdio.h>int main() { int i=0; for(i=0;i<20;i++) {printf("%d ",i); } return 0; } 2. #include<stdio.h>int main() { int i=0; for(i=1;i<20;i++ 阅读全文
posted @ 2022-11-05 22:19 程碗饭 阅读(81) 评论(0) 推荐(0)
摘要: #include<stdio.h>main(){ int gg; printf("来者何人"); scanf("%d",&gg); if(gg==1){ printf("%d是帅哥",gg); }else{ printf("%d是美女",gg); } } 阅读全文
posted @ 2022-11-04 22:54 程碗饭 阅读(30) 评论(0) 推荐(0)