Toggle navigation
Courses
Questions
Tags
Users
AC practice 3
0
like
0
dislike
3.6k
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.6k
views
comment
0
0
Called for Help
Please
log in
or
register
to add a comment.
43
Answers
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
*** * * ** * a, b, c, d, t;
* ** * ** ** *** ** ** *** * * ** * &a, &b, &c, &d);
*** ** **** ** ** *** * *
*** ** * ** * ***** **
**** ****** * ** * * * * **** *** ****** * *
* * * ** * * *** * ** * * ******* *** ** **
* * *** * * **** *** * ** ** ***** * *** *
* * **** * ** ** * ** *
* ** *** *** **** ** * **** ** **
* ** *** **** *
* ***** * *** ** ** * ** * * ** * * * * ** **
*** * * ** ***** **** * ** **** * * ***** * ** *
* ** * *** * * ***** ** ** ** * * * *** ** *
}
** * * *** **** * ** ** ** * * **
{
** * * ** ** ** * * ***** ** * **
** ** ** * ***** ** * ** *** ** * ** ** *
**** * ** * * * *** * **** * * * ** ****** *
* ** ******* *** **
* ** * *** *** * ****** *****
{
** * * * ****** * ** ** *** * * * *
* * * ** * * * ** * * ** * * * * *** **** * *** *
* * * ** *** * * * ** ** ** * * *
*** * * **** ** * * ***
* **** * ****** * * * * * **
******* ***** ** ** * *
** * ** * ** * ** **** ** **** * *** * * **
*** ** *** * * * ** ** ** * **** * ***
* * * * * *** * ** * * * * *** * *****
}
** ** ** * * * * * * * *
* * * ** * *** * * ***
* ** *** * * *** ** * * *** * *** * *
* ** ** *** ** ** * ** ** * * * * *** **** *
* * * *** * * * * ** ** ** * ** *** * *
**** *** * * * *** *
***** * * **** * * * *** * ****** %d %d %d",a,b,c,d);
* * * * * * * *** *** * 0;
}
answered
Oct 26, 2016
by
Queenie0915
(
-124
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
* ** * * * * ** *** *** * i, j, num[5], tmp;
*** **** * **** ****
* * **** * *** ** * *** * (i = 0;i < 5; i++)
** *** * * * * * ** ** ** ** * * * *** ** *** * * * *** * ****** ****
* **** * *** * * ** **
* ** * ** ** *** (j = 0;j < 4; j++)
* * * * * *** * ***** **** * ******* *** ** ** * * (i = j+1;i < 5 ;i++)
* ** * ** ** ** ** * ** ** *** * *** * ** * ** * * *** (num[j] < num[i])
** *** * ***** * ** * * ** ** **** * ***** * * ****** ** ****
** * * **** * ** * * * * ***** *** * ***** ** * *** ** * * *** * ** * ** ** *** * = num[j];
* *** * ** * ***** ** *** * *** *** * * **** ** ** * * ** ** ** ** * *** * * * * *** = num[i];
***** * *** * * ***** *** * *** ** * **** * ** *** * *** * * ***** * * * ** * ** *** = tmp;
* ** ** **** *** * ** ** ** * * ***** * * * ***** ** ** ** ** *****
* * *** * * * * *** ** * (i = 0;i < 5 ;i++)
***** * * * ****** * * *** *** ****** *** * ** ** ", num[i]);
** ** ** *** ** * * ** 0;
* * * * * * **
}
answered
Oct 26, 2016
by
Queenie0915
(
-124
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d,u,i,o,p;
** ** * * * * * * * ** *** ***** ** * ** **** ** *
if ** * ** ** ** * * ** * *** ** * ** **
* **** * * * ** **** ****** **** * *
else * ** * * * ** * ** * *
*** * * ** * * * * * * ** * ** * * *
else **** * * **** * ** * * * * ** ** ***
*** ** *** * ** * * * ** * *** * ****
else *** * *** ** **** * * * *** ** * * *
* *** * * * **** * * *** ** *** *** * *** **** **
if * * * ** * * * * *** ***** * **** *** *** * *** **** ** * * ** * *** *** ***** * **** ********** * ****** ** *** * *
** * *** *** ** * * * ** ** * * ****
else * ** ****** ****** * * ****** ** **** * * *** *** ** * * ** ** ***** * * ** * **** *** * *** * * ** ** ** *** * * *
**** * ** ** *** ** * * ** ** ** * ** *
else * ** ** **** * *** **** * ** *** * ** ** * *** * * * * * *** * * ** * * ** ***** ** *** *
* * * ** *** ** *** * *** ** * * * * ** *
else **** * * *** * * * * * ** ***** **** ** * * * ** * * ** *** *** ***** * * **** ** * * ** * *** *** ** *
* * ** * ** **** ** ***** *** ** ** *** ****
if * *** * * ** *** ******** ****** *** ** ** * ** ** * ** * * * * * * * ** * * * ** * * *** ** * * * * *
*** *** ** * * ** * * ** *** ** ** * * ***
else * * *** * * * **** ** ** * * *** * **** * * * *** * ******* ** ******** ***** *** ** * * * * ** ** * * * * ** ** * * * ** **
******* * * * ***** ******* * * **** ** ** *** *
else **** * **** ** * * * ** ** * * **** ** * * ** * ** * ** * * * ** ** ******* *** * * ** * ** *** * ***** * ** * * *** * **** *
* * * * * ** **** * * ** * ** ** * *
else ** * * *** ** * *** *** *** * **** * * * ** **** * * * * * * **** *** ** ***** * **** ****** * ** * ****** **
** * * * ** * * *** * *** ** **
if *** ** ***** ** * * * *** * ** **
** ******** **** ** *** ***** * *
else * ** ** *** * *** ** *** **** ** **
**** * ***** ****** *** ** * * * * * * **
else *** ** **** * ** *** ** * **** ***
* ** * * ** * *** *** * * * * *** *** *
else * **** ** * * **** * * * * * * **
* * * * ** * * ** * * * ******
** ** ***** ** ** * **** *** ** ** %d %d %d",u,i,o,p);
**** * * * ** *** ** ** *** ** *** * ** ** * * 0;
}
answered
Oct 25, 2016
by
410323020
(
-85
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d,u,i,o,p;
** *** * * * **** ** ** * ** ** * * *** * *** ** * *
if ***** ** * * * *** *** * *** * * * **
*** ** *** * * * *** * ** * * ** * * ** **
else * * *** * * ** *** * * *** ** * * **
*** * * ** * * * * * *** * * * * * * *****
else **** * * ** * ** **** * * * ***
* *** ***** * * * * * * * * ***
else ** * * ****** * * * * * ***** ** * ***
** **** * **** * ** *** *** * *** * * **** **
if ** **** ** ** ***** *** ** ** * **** * *** *** * * * * ** * ** * * ***** * *** * *
*** * * *** ** * * ** * * * *** ****** * ** **
else ** * ***** * * * * ** * *** *** * ****** * **** * * * **** **** * **** ***** *** **** ** * * * * * ** ********* **
*** ** * **** ** ******* * * ** *
else * *** ** * * * **** **** * * * * ** ** * * ****** * ***** *** * * * *** * *** * ****** * **** ** ** ***
*** ** * * ** ** * *** * ** * * *** * * *
else * * ** * *** * * *** *** ** ****** ** * ** ** * * **** ** * *** * * * ** * ** * ** *** * **** *** *
* *** * *** ** ** ** * *** * * * ****
if * * ** * **** ** ****** * * * * ** * * * * ** * * ** ** ** * * ** * *** *** ******* ** ** *
** ******* *** * * * * ** ** * * ***** **** ** **
else * * * * * * * ** * * * ** ** * ** * ** ** ***** ** * *********** * *** *** * * * * *** * ** *
** ** ** *** * ** * * ** * *** * * * *** *
else **** * ** * * * * ** *** * * * * ** * * * ** **** * * ** * ** * * *** * *** * ** * ** *
*** * * * **** ***** * ** ** **
else * *** *** ** ** * **** ** * ** * * * * **** * *** ** * * **** * * * * * ** ** * * * *** * ** ***** ******
** ** ***** ** ** ** * **** * * * * * * ** ****
if ** * * * *** * ** ** **** *** ** **** *
* * ** ** * ** * * ** ***** ** * ** ** * * *
else * * ** ** ***** *** * * ** ****
* *** * * **** * ** ** **** *** * * ***** * * *
else *** * * ***** *** ** ** * * * * * **
** * **** * *** * ** ** * **** * ** * * ** **
else ** ** * * * ** * * ** * * ** ***** *** **
* **** *** * *** *** * * * ** * * ** * *
* *** * ** * * *** * * ** * %d %d %d",u,i,o,p);
* ** * ** * **** *** ** ** * ****** * 0;
}
answered
Oct 25, 2016
by
410323020
(
-85
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* ***** * ******
* * **** ** *
*
int ***
{
int * * *
for ** ***
scanf *** *** * ** *****
for * * * ***
for * * * ***
{
if * * ********
{
* **
**** *
}
}
for * * ** * *
** * * * * * *** *
** ** * ** ** * * ** ** ****
* ** **** ** 0;
* * *
answered
Oct 25, 2016
by
410523016
(
-136
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
* * * ** * * * *** * a[4], i, j, temp;
* *** * ** ** ** * ** **** = 0; i < 4; i++)
** * * ** * ** ** * ** ** *** * ** * **** * ** ** ** * &a[i]);
*** ** * * * ** = 0; i < 4; i++){
** * *** * ** *** **** ** * ** **** ** = i; j < 4; j++){
* * ** ** * * ** * * * * ** *** * * ** * * ** * ** * ** ** * ** > a[i]){
* * * ** * ** * ** ** ** ** ** * ** * ** **** * * * *** * * **** * * ** * * * * ** = a[j];
* * * ** * * * * * * * * ** * * * ** * * ** *** ** * * ** *** * **** * * * * * ** ** = a[i];
* * **** * *** * *** * *** ** *** *** ** * * *** ** ** *** * ***** ** * **** ** * *** *** = temp;
**** * * *** * * * ** * ** ***** ** ** * * * ** * *** ******* ** ** ** *** *
* * *** ** * * ** ** ** * * * * * * *
** *** * *** * * ***
* *** ** ** * * * ** * = 0; i < 4; i++)
**** * * ** **** * ***** * *** ***** * ** ", a[i]);
return 0;
}
answered
Oct 24, 2016
by
410342026
(
-105
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
* ** * * *** * * **** *** a[4], i, j, temp;
* ***** * * **** * * * * = 0; i < 4; i++)
* ** * **** * * * * ** *** * * **** * * * * **** ** * * &a[i]);
**** * ** * ** *** * * = 0; i < 4; i++){
** ** ** ** * *** ** * ** * **** * * *** = i; j < 4; j++){
* * ** * * ** * * ** * * * * * * ** ** * * **** ** ** * * *** > a[i]){
* **** * * * * * ***** ** ***** * * ***** * *** * * * * * ***** * ******* * * = a[j];
*** ** * * * * ** *** ** **** ***** * ******** * * * * * * ** * * * * * * * ** = a[i];
* * * * ** * *** ** * * * ** * ** * ***** ** ****** * * ** *** ** ** ** * * = temp;
*** *** *** **** ***** * *** ***** *** ** * **** * * * * **
** * * ****** * * ** * ****** * * * **** * ** **
* ** * * *** ** *
**** ** * ** * ** ** * = 0; i < 4; i++)
* *** ** *** ** * * * ** ** * * *** ** *** * * *** a[i]);
return 0;
}
answered
Oct 24, 2016
by
410342026
(
-105
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
*** ** ** ** **** ****** a[4], i, j, temp;
* * **** *** * * ** * * * * = 0; i < 4; i++)
* *** * ** * ** **** * * ** * * ******* * * * &a[i]);
** ** * **** *** ** ** * = 0; i < 4; i++){
* * * ***** * * * ** *** ***** * ** ** * * = i; j < 4; j++){
* * * * ****** *** ** ***** * * * ** * * * * *** *** ** *** * < a[i]){
** ** *** *** **** * ** ** * *** * **** ** * **** ** * * ** *** * * * ** ** * *** ** * = a[j];
***** * * * * *** ***** * * * ***** * ** ******* *** ** ** ** * * ** ** * **** * * **** = a[i];
* ***** * * * ** ** * * *** * *** * * * *** * * *** ** * * * ** ** * ** * = temp;
***** * * * * ********* * **** * * ***** ***** ** * ** *
* ******* * * * *** ** * ** **** *** * ******
* ** * ** * * **** **
* * * * * ** * = 0; i < 4; i++)
* *** * ***** * * * * ** * * * *** *** * * ** *** * * * * a[i]);
return 0;
}
answered
Oct 24, 2016
by
410342026
(
-105
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
* ** **** **** * * *** *** a[4], i, j, temp;
** ** * ** *** * * = 0; i < 4; i++)
** * ** * * *** ** * * ** * ** * * * ** ** *** * *** * * * &a[i]);
* **** * * * * **** * * *** * = 0; i < 4; i++){
* ***** * **** ** * ** ** ** * * * *** ** * = i; j < 4; j++){
** * * ** ** * * * **** * * * ** *** * ** * *** ****** * ** * ** * ** < a[i]){
** * * * * * * ** * ** * * * ** ** * * ***** ** * *** ***** ****** ** * *** * = a[j];
**** * ** * * * *** ** **** * *** * * **** * * * * ** * ** * *** * ** * * ** *** * = a[i];
* *** * * ** * ** *** ** * * * * *** * * * * ** ** * ** ** ** *** *** ** *** * * = temp;
**** *** ** * *** * * * * * ** *** ***** * ** * * * ****** * *
* *** *** ** * *** ** * * ****** ****
* * * ** * * ****** * ** *
* * * * ** * * ** * *** = 0; i < 4; i++)
* * * * * ** * * ** * ****** * * * * * * *** *** ***** * * a[i]);
return 0;
}
return 0;
}
answered
Oct 24, 2016
by
410342026
(
-105
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
int main()
{
int a[4], i, j, temp;
* ** ** * * * * *** ** * = 0; i < 4; i++)
* *** ** * ** * *** * * * ***** * * ** **** * **** **** &a[i]);
*** * * * *** *** * = 0; i < 4; i++){
** ** * ****** * ** ** ** * * ** * * * ** = i; j < 4; j++){
* ** ** * * * * * *** ******* * ** * *** ***** * * ** * * * ***** **** * < a[i]){
*** ** **** * * *** * *** ** * **** * *** *** *** * ** *** ** * * ** ** **** *** ** *** * = a[j];
* * *** ** **** * * * ** * * ** * * * ** ***** ** * **** **** * ** * * ** * * * ** * ** ** = a[i];
* * * **** * * **** * * * * *** * * **** ** * * *** * *** *** ** **** ***** * * **** * * ** = temp;
* *** ***** *** ** * ** ** ***** *** * *** * *** ***** ** ** ** *
* * * **** * ** **** **** * * * *** *
}
* * * *** ** * * * = 0; i < 4; i++)
*** * * * ***** * * * * ***** ** ******* * * * *** * * * * a[i]);
return 0;
}
answered
Oct 24, 2016
by
410342026
(
-105
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
3
4
5
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.70.126.33
©2016-2025
Related questions
0
like
0
dislike
35
answers
AC practice 4
[Normal]
Coding (C)
-
asked
Oct 13, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 13422 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.9k
views
0
like
0
dislike
49
answers
AC practice 2
[Normal]
Coding (C)
-
asked
Oct 11, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 13023 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4k
views
0
like
0
dislike
39
answers
AC practice 1
[Normal]
Coding (C)
-
asked
Oct 11, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 13020 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3.5k
views
0
like
0
dislike
16
answers
AC 20161027 期中考 3
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15396 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
1.6k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users