Toggle navigation
Courses
Questions
Tags
Users
AD 20161020 作業 2
0
like
0
dislike
2.3k
views
請設計一程式,請使用者輸入五個數,程式會依使用者輸入的相反順序將五個數印出。
Sample input:
1 2 3 4 5
Sample output:
5 4 3 2 1
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14582 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.3k
views
comment
Please
log in
or
register
to add a comment.
31
Answers
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void) {
**** * ** *** *** ** * i=0,a[5];
**** * *** * ** ** *** ** * **
** ******* * ******
* * ** * ** * * * ** * *** * *** ** * *** ** **** * ** * *
* * * ** *** *
* * *** * ** *** *** * * **
* * *** * *** * *****
** * ** ** * *** ** *** ** * * * * *** ** ****
* * * * * ** ** * * * * * ****** *** ******** * * ** ");
*** * ** * ** ** ****
* * **** * * * * **** ** EXIT_SUCCESS;
}
answered
Dec 2, 2016
by
410421238
(
-38
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>
#include <math.h>
int main(void) {
** ** * ** ***** ** i=0,a[5];
* * * * ** * *** ***** * * ** * *
** * * ** * * **
** * * * * ** * * ** ** ** *** * * * * ** ** *** * * ***
*** * *** * ** **** ** **
**** * ** * * * *** ** * **
** ** * * ** *** *
* ** * ** * * * ** **** * ** *** ** * * * * * ** ***** ******
* ** * * * ** * **
* * * * ***** ** ** EXIT_SUCCESS;
}
answered
Dec 2, 2016
by
410421238
(
-38
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ** * * *****
#include * * ***** **
int main()
{
* * * * ** * *** a[5];
*** ** ** * * * * *** i;
* * ** * * ******** ** * = 0; i < 5; i++)
** **** *** ***** * * ** ****** *** * * ** *** *** ***** *
* * ** **** ** *** * * * * = 4; i >= 0; i--)
* ** ** *** ** ** **** *** * * * ** *** **** ** ** ** * * * ** a[i]);
* ** * * * * * ** 0;
}
answered
Oct 26, 2016
by
lovekakoda
(
-64
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * ** * ** *
#include ** **** *** *
int main()
{
* * ** ** * ** i,stud[5]={0};
** * * * **** * * *
* ** * **** * *** *** = 0; i < 5; i++)
*** * *** ** * * * ** * *** * ** * ***** * * &stud[i]);
* ***** * * * ***
* * * ** ** * * * * ** = 4; i >= 0;i--)
* * * * * * ** * **** * * *** *** ** * ** * ", stud[i]); * * * ** *** * * **
** ** * **** * ***
* **** **** * * * * ** * * * * *
* ** * ** * ** * 0;
}
answered
Oct 20, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * * * * *
#include * *** * **
int main()
{
* * *********** ** * i, *
* ** *** * * * * ** = 0;i < 5;i ++)
** ****** * * *** ***** *** **** ** * ** * * **** ** * * **
* * * * * = 4;i >= 0;i --)
* * *** * ** *** ** * **** * ** * * *** ** * **** num[i]);
* **** * * ** * * * ** *** **** **
*** * * * *** * * **** 0;
}
answered
Oct 20, 2016
by
410214219
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * * ** *
#include * *** * **
int main()
{
** * ** * * * * * * i,stud[5]={0};
* * * * * ** * ***
* * *** * *** **** * * * = 0; i < 5; i++)
**** ** *** * *** *** ** * ** **** * * * * *** ** &stud[i]);
*** ***** * ** * *** ** *
* * * * ** * * ** * = 4; i >= 0;i--)
* * * * ** ** **** * * ***** * * **** * **** * * stud[i]); * * * ** ** **** * **
*** ** **** ** ** * ** **
* *** *** *** * * *** * ******* * *** *
**** * ***** ** ********* 0;
}
answered
Oct 20, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ** *** ** *
#include ** * ** * **
int main()
{
** ****** **** ** *** ** * * i,stud[5]={0};
* * * * * * *
* ** * **** * ** ******* = 0; i < 5; i++)
* ** *** * * ** * * ** * * ** ** ****** ** * ** ** &stud[i]);
******* ** * * *****
**** ** **** ** ** * **** = 4; i >= 0;i--)
***** * * * **** * ** * ***** *** ***** *** ** * * ** stud[i]); * ** **** *** * * * * ** * ** *
** ** * * ** * *
** ** * * * ** ** ** ** ** * **** ** *
* * *** * * *** * *** * 0;
}
answered
Oct 20, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* ** ****** ***** *
** * * ** *
int main()
{
* *** *** * * * * i, j, tmp, * * ***
** * ***** *** * ** (i = 0; * * 5; i++)
*** * * * * *** * ** *** ** * * *** ** * ** ** ** ** *** ** ** **
for (j=0; j * * 4; j++)
* * *** ** * * (i = j+1; i * ** 5; i++)
if (num[j] ** num[i])
{
* * *** * * ***** = num[j];
* ** ** * ** ** * * = num[i];
* * ** **** **** * ** * = tmp;
}
*** *** ** * *** * * ******* (i = 0; i * * 5; i++)
* ***** * * * * ******** * * *** ** *** * * * *** *** *
** **** ** ** *** ** ********** ** ****** *
*** ***** * ** ** * * ** * ** 0;
}
answered
Oct 20, 2016
by
410242043
(
56
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * *** ** ** *
#include * * **** *
int main()
{
*** * ** * ** ** i;
*** * * ** * *** num[5];
** * ** * *** * *** = 0;i * * * 4;i ++)
* ******** * * * ****** * **** * ** * ** * * * **
* * ** * ** * ** ** * = 4;i * *** ;i --)
* *** *** ** ***** * * * * * *** * *** **** * **** num[i]);
* * ** ****** **** * 0;
}
answered
Oct 20, 2016
by
410511226
(
-188
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
*** ***** * * ** ** num[5]={0};
** *** ** * * *** ** i;
* * * * * * **** ** **** *** i<5;i++)
** * ********** ** * **
* *** * * * * **** *** ***** **** **** * ***** * ** * * ** &num[i]);
* * * * * ** **** * * *
* *********** ** * * * ** i>=0;i--)
** * * ** * * * **** *
** ******* *** * * ** * ** *** * *** ** ** ",num[i]);
** ** ***** *** **
* * * ** * ****** * **** * * ***** * ***** *
* ** * *** ******* * * 0;
}
answered
Oct 20, 2016
by
kyle wen
(
-202
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
1
2
3
4
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.69.17.202
©2016-2025
Related questions
0
like
0
dislike
54
answers
AD 20161020 作業 4
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14583 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3.7k
views
0
like
0
dislike
37
answers
AD 20161020 作業 1
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14579 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.5k
views
0
like
0
dislike
37
answers
AD 20161020 做業 3
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14581 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.8k
views
0
like
0
dislike
31
answers
AD 20161103 作業2
[Exercise]
Essay (Open question)
-
asked
Nov 3, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16958 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.4k
views
0
like
0
dislike
159
answers
AD 20160929 作業 2
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11639 -
Available when:
Unlimited
-
Due to:
Unlimited
|
9.7k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users