摘要: #include<stdio.h> int Max(int x,int y) { int r; if(x>y) r=x; else r=y; return r; } int main() { int a,b,c; printf("input a b:"); scanf("%d%d",&a,&b); 阅读全文
posted @ 2021-12-08 17:31 张瑶~ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> main(){ int i=0; char str[50]="wo ai c yuyan"; while(str[i]!='\0'){ i++; } printf("%d\n",i); #include<stdio.h> ma 阅读全文
posted @ 2021-12-08 17:29 张瑶~ 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> main() { int number[8]; int i; for(i=1;i<8;i++){ scanf("%d",&number[i]); } for(i=7;i>=1;i--){ printf("%d",number[i]); } } #include<s 阅读全文
posted @ 2021-12-08 17:27 张瑶~ 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> main(){ int x,guess; srand((unsigned int)time(NULL)); guess=rand()%100; while(1){ printf("请输入 阅读全文
posted @ 2021-12-08 17:23 张瑶~ 阅读(19) 评论(0) 推荐(0) 编辑