Int main ()
{
Int a=1, b=1, c=1, I, j, k;
For (a; a<10; +)
{
For (b; B<10; B++)
{the for (c; c<10; C + +)
If (100 * a + b + c + 10 * 100 * c * b + a + 10==1333 & amp; & A> 0)
I=a;
J=b;
C=k;
}
}
Printf (" a=% d, b=% d, c=% d ", I, j, k);
}
CodePudding user response:
For your reference
Void test ()
{
Int a, b, c;
For (a=0; A. & lt; 10; +)
{
For (b=0; B & lt; 10; B++)
{
For (c=0; C & lt; 10; C + +)
{
If (a + 10 * 100 * 100 * c + + c + b * 10 + a=b=1333)
Printf (" a=% d, b=% d, c=% d \ n ", a, b, c);
}
}
}
}
CodePudding user response: