Home > Back-end >  Beginners ask you, where is wrong?
Beginners ask you, where is wrong?

Time:12-12

#include



Int main ()

{
Int t, a, b, c, d;

Printf (" please enter the number 4: ");

The scanf (" % d, % d, % d, % d ", & amp; A, & amp; B, & amp; C., & amp; D);

If (a & gt; B)

{
T=a;

A=b;

B=t;

}

If (a & gt; C)

{
T=a;

A=c.

C=t;

}

If (a & gt; D)

{
T=a;

A=d.

D=t;

}

If (b & gt; C)

{
T=b;

B=c.

C=t;

}

If (b & gt; D)

{
T=b;

B=d.

D=t;

}

If (c & gt; D)

{
T=c;

C=d.

D=t;

}

From small to large output: printf (" % d % d % d % d \ n ", a, b, c, d);

return 0;

}
  • Related