Toggle navigation
Courses
Questions
Tags
Users
09/21 Print a star-triangle
1
like
0
dislike
5.3k
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
|
5.3k
views
comment
Please
log in
or
register
to add a comment.
92
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <stdlib.h>
int main()
{
* * ** ** * * ** *** * * ** *** *
** **** * * * *** ** * ***** * * * * * **
*** * ** * * * * *** ** * * ** ** * *** * * * *
* * * * * ** * ** * * * ** * *** ** * ***
** *** ** * * * * *** * ** * * * ** * * ** *
* * ** *** * *** *** ** * 0;
}
answered
Sep 21, 2017
by
watty1998871108
(
-127
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!** * ** * *** * *
main (void)
{
printf ** * * *** **
printf * * * *