3.抓逃犯
#include <stdio.h>
#include <math.h>
int main()
{
int a=0, b=0; //a:前两位,b:后两位
for (a = 0; a < 9; a++)
{
for (b = 0; b < 9; b++)
{
int c = a * 1000 + a * 100 + b * 10 + b;
if (a != b && sqrt(c)==(int)sqrt(c))
{
printf("牌照为%d\n", c);
}
}
}
return 0;
}