摘要: #include <stdio.h> int shu(int a,int b); main() { printf("%d",shu(23,56)); getchar(); } int shu(int a,int b) { int aa; aa=(b%10)*1000+b/10*100+(a%10)* 阅读全文
posted @ 2022-02-22 19:14 myrj 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 同构数:一个数是其平方的尾数:如5 25 ;25 625; #include <stdio.h> main() { int a,b,c; for(a=1;a<10000;a++) if(tgs(a)) printf("%d ",a); getchar(); } int tgs(int x) { in 阅读全文
posted @ 2022-02-22 19:02 myrj 阅读(724) 评论(0) 推荐(0) 编辑