Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "iostream"
- #include "math.h"
- using namespace std;
- int main()
- {
- int numbers,i,n,counter = 0;
- for (i = 0;i<1000;i++)
- {
- while(i)
- {
- i = i*10+n%10;
- n /= 10;
- }
- if ( sqrt(i) % 1 == 0)
- counter ++;
- }
- cout << counter << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement