Toggle navigation
Courses
Questions
Tags
Users
AC practice 3
0
like
0
dislike
3.5k
views
請設計一個程式讓使用者輸入四個整數,程式會將四個數由大排到小輸出。
輸入範例
5566 183 9527 7533967
範例輸出
7533967 9527 5566 183
[Normal]
Coding (C)
-
asked
Oct 11, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 13025 -
Available when:
Unlimited
-
Due to:
Unlimited
1
flag
|
3.5k
views
comment
0
0
Called for Help
Please
log in
or
register
to add a comment.
43
Answers
0
like
0
dislike
Hidden content!** ** * * ** * *
* * * * * ***** * * **
int main()
{
int i, j, tmp, num[4];
** * * = 0;i < 4;i++)
* * ** * * * ** * * ** * ** *** *** * *
** * = 0;j < 3;j++)
* * *** ** ** * * * * **
* * ** * ** *** * * * * = j + 1;i < 4;i++)
** * ** * * ***** * ** * ** * * ** < num[i])
* * * * ** ** *** * ** ** ** **