Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int n,a,Sum=0,e,d,s;
- for (int i=100;i<=999;i++)
- {
- a=i*i;
- e=a%10;
- a/=10;
- d=a%10;
- a/=10;
- s=a%10;
- a/=10;
- if(i==(s*100+d*10+e)) cout<<i<<" ";
- }
- return 0;
- }
- ОТВЕТ 376 625
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement