#include "stdio.h" main() { int c; for (int i = 1; i <= 99; i++) { if(i==(i*i)%10||i==(i*i)%100){ printf("%d\n",i); }else{ continue; } } getchar(); }