Toggle navigation
Courses
Questions
Tags
Users
AD 20161013 作業 3
0
like
0
dislike
788
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
|
788
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!#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void) {
** * ** * * *** * * * ** * * * * * x,i,j,t=1;
** ** * ** * ** * *** ** * * * * ** * * ** * * *
* * * **** ** * * * *** * * * *
* * * * ** ** * **
****** *** **** * * * ** ** ** ** ** ** * * * * * ** * * ***** * **** * * ");
* *** *** ** * * * * *** * ** ** ** *** * * * *** * * * * * * ** ** * * *
* ** * * ** * * ** ** * * * ** * * * ** * * * * * ** *** * * * *
** * ** * ** * * * * * * * * * * * *** ** * ** ** * ** *
* ** ** * ** * * * * * * *
* * ** * * * ** * * * ** * ** EXIT_SUCCESS;
}
answered
Dec 1, 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) {
** ** *** ** ** * * * * * x,i,j,t=1;