39 lines
640 B
C
39 lines
640 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(){
|
|
|
|
int biggest = 0;
|
|
|
|
for (int i = 100; i < 1000; i++)
|
|
{
|
|
for (int j = 100; j < 1000; j++)
|
|
{
|
|
int x=i*j;
|
|
int z=x;
|
|
int y=0;
|
|
|
|
while (x != 0)
|
|
{
|
|
y = y * 10;
|
|
y = y + x%10;
|
|
x = x/10;
|
|
}
|
|
|
|
//printf("%d - %d\n", y, z);
|
|
|
|
if (y==z & y>biggest){
|
|
biggest = z;
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
printf("%d\n", biggest);
|
|
|
|
|
|
return 0;
|
|
} |