Toggle navigation
Courses
Questions
Tags
Users
09/21 Print a star-triangle
1
like
0
dislike
7.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
|
7.9k
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
Sabrina Lin
(
-285
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
Sabrina Lin
(
-285
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
Sabrina Lin
(
-285
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * ** * * **** *
int main(void)
{
********** * ** ** ****** ** ** * * ** ** *** **
*** ** * ** ** *** 0;
}
answered
Sep 21, 2017
by
410530022
(
-196
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
Sabrina Lin
(
-285
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
Chris118ta
(
-284
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
***** * * *** ***
int main(void)
{
* *** * *
* * **** * *
* **** * * ****
* ** *** * * *
** * * * * ** ** ***
return 0;
}
answered
Sep 21, 2017
by
rick
(
-255
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* **** * **
int main(vold)
{
*** *** * *
* * **** ** * * **
* * * * ***** **
* * * ** *** *****
* ** * * ***
return 0;
}
answered
Sep 21, 2017
by
rick
(
-255
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main(void)
{
** ** *** ** * *** ** * * * **** **
*** **** * **** ** ** ** *** ****** * * * *
* * * **** ** *** **** * ** ***** * *
** ** * ***** *** **** ****** * *** * **
** * * ** ** * ***** * ******** * * *
** *** * *** * ** * 0;
}
answered
Sep 21, 2017
by
garrylin2
(
-204
points)
ask related question
comment
Please
log in
or
register
to add a comment.
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.
Page:
« prev
1
...
6
7
8
9
10
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.71.255.104
©2016-2025
Related questions
1
like
1
dislike
93
answers
09/21 Using printf function
[Exercise]
Coding (C)
-
asked
Sep 21, 2017
in
Chapter 1: Introducing C
by
thopd
(
12.1k
points)
ID: 25287 -
Available when:
Unlimited
-
Due to:
Unlimited
|
13.4k
views
printf
c
shape
introduction
0
like
0
dislike
0
answers
Chapter 1: Introducing C
[Resource]
asked
Oct 14, 2017
in
Chapter 1: Introducing C
by
thopd
(
12.1k
points)
ID: 26946 -
Available when:
Unlimited
-
Due to:
Unlimited
|
13
views
resource
c
introduction
12,783
questions
183,442
answers
172,219
comments
4,824
users