Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int liczbacyfr(int n) {
- int g;
- g=10;
- while(n>=g){
- g=g*10;
- }
- return g;
- }
- int main()
- {
- int x,xs,g,r;
- x=1; g=10;
- while(x<=10000000){
- xs=x*x;
- r=xs-x;
- g=liczbacyfr(x);
- if((r%g)==0){
- printf("%d\n", x);
- }
- x=x++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement