Toggle navigation
Courses
Questions
Tags
Users
09/21 Print a star-triangle
1
like
0
dislike
2.5k
views
Use C program to print out a star-triangle below:
* ** *** **** *****
printf
c
introduction
star
triangle
[Exercise]
Coding (C)
-
asked
Sep 21, 2017
in
Chapter 1: Introducing C
by
thopd
(
12.1k
points)
ID: 25286 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.5k
views
comment
Please
log in
or
register
to add a comment.
92
Answers
0
like
0
dislike
Hidden content! *** * * * * * * *
int * **
* * * * * * * ***** * ** *
return 0;
}
answered
Sep 21, 2017
by
黃上豪
(
-116
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()
{
* ** * * ** ** * * * * *** * * * * *
* * * **** * * * * * ***** ** * ** *** * * *
* * * **** * * ** * ** *** * * ** ** * ***
* * * * * * * * * * * * * * ***
** * * *** * * * * * * * * ** * ** * * * * * * ** ** *