#include <iostream> using namespace std; int a; int main() { for (int i=900; i<=999; i++) for (int j=900; j<=999; j++) { a=i*j; if(((a/100000)%10==(a%10))&&((a/10000)%10==(a/10)%10)&&((a/1000)%10==(a/100)%10)) cout << i << " x " << j << " = " << a << endl; } return 0; }