c#求解题过程
()()()x()6-----------------4()58()c#求解过程...多谢kaka,我把你的补充完整:if((x1*100+x2*10+x3)*(x4*1...
()()()
x ()6
-----------------
4()58()
c#求解过程...
多谢kaka,我把你的补充完整:
if ((x1 * 100 + x2 * 10 + x3) * (x4 * 10 + 6) == (40000 + x5 * 1000 + 580 + x6))
{
string st = (x1 * 100 + x2 * 10 + x3) + "*" + (x4 * 10 + 6) + "=" +(40000 + x5 * 1000 + 580 + x6);
Console.WriteLine(st);
} 展开
x ()6
-----------------
4()58()
c#求解过程...
多谢kaka,我把你的补充完整:
if ((x1 * 100 + x2 * 10 + x3) * (x4 * 10 + 6) == (40000 + x5 * 1000 + 580 + x6))
{
string st = (x1 * 100 + x2 * 10 + x3) + "*" + (x4 * 10 + 6) + "=" +(40000 + x5 * 1000 + 580 + x6);
Console.WriteLine(st);
} 展开
展开全部
代码如下,破百度,出BUG了,写不全:
结果:
454*96=43584
530*86=45580
534*76=40584
613*76=46588
630*66=41580
721*66=47586
814*56=45584
904*46=41584
991*46=45586
for (int x1=1;x1<=9 ;x1++ )
{
for (int x2 = 0; x2 <= 9; x2++)
{
for (int x3 = 0; x3 <= 9; x3++)
{
for (int x4 = 1; x4 <= 9; x4++)
{
for (int x5=0 ;x5<=9 ;x5++ )
{
for (int x6 = 0; x6 <= 9; x6++)
{
if((x1*100+x2*10+x3)*(x4*10+6)==(40000+x5*1000+580+x6) )
{
string st = (x1 * 100 + x2 * 10 + x3) +
结果:
454*96=43584
530*86=45580
534*76=40584
613*76=46588
630*66=41580
721*66=47586
814*56=45584
904*46=41584
991*46=45586
for (int x1=1;x1<=9 ;x1++ )
{
for (int x2 = 0; x2 <= 9; x2++)
{
for (int x3 = 0; x3 <= 9; x3++)
{
for (int x4 = 1; x4 <= 9; x4++)
{
for (int x5=0 ;x5<=9 ;x5++ )
{
for (int x6 = 0; x6 <= 9; x6++)
{
if((x1*100+x2*10+x3)*(x4*10+6)==(40000+x5*1000+580+x6) )
{
string st = (x1 * 100 + x2 * 10 + x3) +
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询