Toggle navigation
Courses
Questions
Tags
Users
09/21 Print a star-triangle
1
like
0
dislike
2.9k
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.9k
views
comment
Please
log in
or
register
to add a comment.
92
Answers
0
like
0
dislike
Hidden content!* ** * * * * * *
int main()
{
* * ** * * * * * **** * *
* * * * * * * 0;
}
answered
Sep 21, 2017
by
fung2004067
(
-214
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()
{
* * ** * ** ** * ** * ** * * * * * * * ** ** ***
* * * * * **** ** * *** ** ** ***** * ** * * * **
* ** ** * ** * * * * * * * * ** * * * * * * *
* ** *** **** *** * *** * * * ** *** * * * ** *
** * * * * * * *** ** * * *** * * * * * *
* * * * * * * * ** * 0;
}
answered
Sep 21, 2017
by
JevonneG
(
-107
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! * * * ** * * * *
int main()
{
printf *** * ** * *
printf *** ** ** * * ** *
* * ** * * *
* * * *