Toggle navigation
Courses
Questions
Tags
Users
AD 20161013 作業 3
0
like
0
dislike
2.7k
views
請設計一個程式,利用迴圈輸出文字金字塔。
p.s. 輸入皆為奇數,且不大於20
範例輸入1:
5
範例輸出1:
*
***
*****
輸入範例2:
7
輸出範例2:
*
***
*****
*******
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13501 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.7k
views
comment
0
0
Called for Help
0
0
Called for Help
Please
log in
or
register
to add a comment.
45
Answers
0
like
0
dislike
Hidden content!* ** * * * * * *
* * * * *** * * *
int main()
{
* ******* * * ** *** * * * a,i,j,k;
* * * * * * * * * ** **
** ** ** * * * * * * ** * * * ** * * * * *
* ** ** ** * ** * ** ** = 1;i <= a;i += 2)
* *** * ** * * ** *