`
smallearth
  • 浏览: 34174 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

625这个数字很特别,625的平方等于390625,刚好其末3位是625本身。除了625,还有其它的3位数有这个特征吗?还有一个!该数是:_____________

 
阅读更多


#include "stdafx.h"
#include<iostream>
using namespace std;
int main ()
{
int a,b,c,d,e,f;
for(a=100;a<1000;a++)
{
b=a*a;
c=b/100000;
d=(b-c*100000)/10000;
e=(b-c*100000-d*10000)/1000;
f=b-c*100000-d*10000-e*1000;


if(a==f)
{
cout<<a<<"*"<<a<<"="<<b<<endl;
cout<<a<<endl;
}
}
return 0;
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics