上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 186 下一页
摘要: #include <stdio.h> main() { int n,a[10]={0}; scanf("%d",&n); while(n>0&&n<=99) { if(n>0 && n<=10) a[(n-1)/10]++; else a[n/10]++; scanf("%d",&n); } for 阅读全文
posted @ 2023-01-22 21:09 myrj 阅读(49) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int i,n,s; s=0; scanf("%d",&n); for(i=1;i<n;i++) if(n%i==0) s=s+i; if(s==n) printf("%d是完数",n); else printf("%d不是完数",n); ge 阅读全文
posted @ 2023-01-22 14:03 myrj 阅读(308) 评论(0) 推荐(0)
摘要: 行驶方向:从合肥到郑州 G95 高速公路名称86:86公里处表示148公里加900米处 S3500高速公路46公里100米处 阅读全文
posted @ 2023-01-18 17:58 myrj 阅读(274) 评论(0) 推荐(0)
摘要: #include <stdio.h> int zs(int n) { int a; for(a=2;a<n;a++) if(n%a==0) return 0; return 1; } main() { int a,b,c=0; scanf("%d",&a); for(b=a-1;b>=2;b--) 阅读全文
posted @ 2023-01-18 15:44 myrj 阅读(51) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> main() { char zf[100],ch; int a,b=0,c; gets(zf); c=strlen(zf); if(c!=11 || zf[0]!='1') b=1; for(a=0;a<11;a++) { 阅读全文
posted @ 2023-01-18 15:16 myrj 阅读(359) 评论(0) 推荐(0)
摘要: #include <stdio.h> float fh(int n) { if(n==1) return 1; else return 1/(n-1+1/fh(n-1)); } main() { float aa=0; int a,b; for(a=1;fh(a)>=0.001;a++) //pri 阅读全文
posted @ 2023-01-18 15:01 myrj 阅读(180) 评论(0) 推荐(0)
摘要: local model jdt1 jdt2 jdt3 jdt4 jdt5 jdt6 jdt7//左花括号应当与左边字符位于一行//变量名左边两边的符号不是单引号,是~键上的下面的字符(!左边的键)foreach var of local model{ summarize `var' }//*右花括号 阅读全文
posted @ 2023-01-15 15:25 myrj 阅读(216) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-01-15 14:52 myrj 阅读(55) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-01-15 07:43 myrj 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-01-15 07:39 myrj 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 186 下一页