Home > Back-end >  Trouble bosses to help take a look at this question what should I do
Trouble bosses to help take a look at this question what should I do

Time:12-19

#include

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:

1 response: refer to the original poster evil mother buy mask
# include

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);
}

You can try this
#include
Void main ()
{
int a,b,c;
for(a=1; a<10; +)
{
For (b=1; B<10; B++)
{
For (c=1; c<10; C + +)
{
If (a * 100 + b + c + c * * 10 * 10 + a + b=100=1333)
Printf (" % d, % d, % d ", a, b, c);
}
}
}
}
  • Related