上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 188 下一页
摘要: #include <stdio.h> int d=1; fun(int q) { int d=5; d+=q++; printf("%d ",d); } main() { int a=3; fun(a); d+=a++; printf("%d\n",d); getchar(); } 阅读全文
posted @ 2022-09-28 10:24 myrj 阅读(60) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int days,sum=1; scanf("%d",&days); while(--days) { sum=(sum+1)*2; } printf("%d",sum); getchar(); } #include <stdio.h> int 阅读全文
posted @ 2022-09-27 16:47 myrj 阅读(46) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <math.h> #define N 10 //一个球从100米高度自由落下,每次落地后返回高度的一半,再落下,再反弹。求它在第10次落地时,共经过多少米? main() { float s=200,b=100,c; int a; for(a= 阅读全文
posted @ 2022-09-27 14:35 myrj 阅读(41) 评论(0) 推荐(0)
摘要: #include <stdio.h> int hws(int a) { int b=0,c=a; while(a) { b=b*10+a%10; a=a/10; } if(c==b) return 1; else return 0; } main() { int a,b; for(a=100;a<= 阅读全文
posted @ 2022-09-26 20:35 myrj 阅读(53) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int a; for(a=1;a<100;a++) if(a%3==2 && a%5==4) { printf("%d",a); break; } getchar(); } 阅读全文
posted @ 2022-09-26 17:10 myrj 阅读(28) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int a,b=0,c; scanf("%d",&a); while(a) { b=b*10+a%10; a=a/10; } printf("%d",b); getchar(); } #include <stdio.h> void fx(int 阅读全文
posted @ 2022-09-26 16:39 myrj 阅读(79) 评论(0) 推荐(0)
摘要: #include <stdio.h> void zys(int a) { int i; printf("%d=",a); for(i=2;i<=a;i++) { while(a%i==0) { printf("%d",i); a/=i; if(a!=1) printf("*"); } } } mai 阅读全文
posted @ 2022-09-25 07:07 myrj 阅读(156) 评论(0) 推荐(0)
摘要: sjh pvq4nrx4kzemw4ca zh ['pvq4nrx4kzemw4ca'] lx [] >>> sjjtjc(sjh,"./xmzq.png",0,2) False >>> sjjtjcwzopb(sjh,"./xmksfhzq.png",0,2) False >>> sjjtjc(s 阅读全文
posted @ 2022-09-25 05:47 myrj 阅读(61) 评论(0) 推荐(0)
摘要: #include <stdio.h> //求1/2,2/3,3/5,5/8,8/13,13/21,21/34...前20项和 main() { int a,c=1; double sum=0,b=1.0,d,e,f=1,g=2; for(a=1;a<=20;a++) { d=f/g; sum=sum 阅读全文
posted @ 2022-09-24 06:59 myrj 阅读(667) 评论(0) 推荐(0)
摘要: 字符:1.char ab='A'; ab='\101'; ab='\x41' 只有一个字符字符数组1.字符串结束标志'\0'2.n个字符串,占用n+1个字节3.字符串输出标志符:%s初始化:2.char ab[]="asdfasdf"; char ac[20]={'a','b','c'};3.字符数 阅读全文
posted @ 2022-09-23 09:54 myrj 阅读(146) 评论(0) 推荐(0)
上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 188 下一页