1 like 1 dislike
33.2k views

Please using only printf function to print out this shape:

    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *

 

[Exercise] Coding (C) - asked in Chapter 1: Introducing C by (12.1k points)
ID: 25287 - Available when: Unlimited - Due to: Unlimited

edited by | 33.2k views
1 1
Notes: TA made a mistake when set the wrong output, so some new answers got wrong. Please re-submit your answer if you're still wrong

93 Answers

0 like 0 dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>

int main()
{
* **** **** * * ** *** ***** *** *** * ** * * * *
* ****** ****** * * * * * ** * * ** * ** ** * **
* ** ** **** * * ** *** * * *** * * **
**** **** * ** * * ***** ** * * *******\n");
** ** ** ** * ** * * *** * *** **** * * * *
* ******* **** ** * ** * * ** *******\n");
**** * * ** ********** ** ** ***  *****\n");
* ****** **** * * * * *** ** ********** ** * * * ** ****
** * * ***** * * *** *** * * ******* * ** * ** ** ***** *

* ***** * *** **** * ** * 0;
}
answered by (-258 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{

* * ** ** ***** ***** * **** * * *** *** * ***** ****** *
* * * *** * * **** ** *** * *** * **** ****
*** ** *** *** * ** * ** * * *  *****\n");
**** ** **** *** ** * * * * *** ** *******\n");
* * * ****** ****** * * *** ** ** ****** **
* * * * ** ** ** ** * **** * * *******\n");
* * * * * * * ** * * * *** * ** ****  *****\n");
* * ** ****** ** ** **** ** *** * * *** ** *
* * ** * * ** * ** **** * * ***** * * * * * * *** ****** ***
* ** ** ** ** ******* **
* *** ** * * * ***** ***** 0;
}
answered by (-193 points)
1 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main() {
** *** * ** * * * **
**** * * * * ****** **** * * * * * * *** ** * ***
* * * * * ** ** ***** * * * * *** * * * * * * ** * *
**** * *** *** * ** * ***** ***** * * * ** * * * ** *
* * ** * **** ** ** ** **** **  *******\n");
* ** * * * ** * * * *** *** * * *********\n");
* ** ** *** ***** ** ** ** *  *******\n");
* ** * *** * * * * * * **   *****\n");
* * ** * * ** *** * * ** * * * ** ** *** * ** * ****
* * **** **** ** * * **** ***** * * ** *** ** * * *** ** ****
*** ** * *** ** ** * * **** *
***** ***** *** **
* *** * ** * ** * * **** 0;
}
answered by (323 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main() {
* * * * * ** ** * ** *
* ** ** * * *** ** *** * * * * * *** ** * ** * *** **
*** * **** **** ******** ** ** ** ** * ** * * *** ***** *
* * ** * *** ** * * * ***** * *  *****\n");
*** **** ** * ********* ** ** ** *******\n");
* *** * * **** ***** * * * * * *
* * **** ** ** ** ** * * ** * ** *******\n");
* **** **** *** ** **** ** ***  *****\n");
* * ***** * * ***** * ** **** * ** * * ** * ** **
* * * * **** * ** * *** * * ***** **** ** ** * *** ***** * * *
* * *** * **** * * * ** *
********* ** *** * * **
*** * * * ********* ** * * 0;
}
answered by (323 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main()
{
* * **** ** * * *** ** *** ** ** *** * ** * *** * * *
* ******** *** *** **** * **** ** ** ** ***** ** * **
* * ** * ** ** * ** ****  *****\n");
** * ** ***** * * ** * * *** *** * *******\n");
* *** * * * **** *** * * * * *
* ******* *** * * *** **** *******\n");
* *** * *** ********* *** * *  *****\n");
** * ****** ** ** * * ** *** * ** *** *** * ** * **
** *** * * * ** *** *** * ** *** * **** *
return 0;
}
answered by (-141 points)
0 0
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>
int main()
{
** * ****** * *** * * *** *** ********* ** * * *** ****
* *** * *** ** * ***** * * * * * * * * * *
** * *** * * * * * ** ****  *****\n");
* * *** * * *** ** **** * *******\n");
*** * **** * * * **** * ** * ** ***
** * *** ****** * * * * * * *******\n");
*** ** *** ** ** * ** *** *  *****\n");
* * ***** * * * * * * *** * * * ** *** * * * * *
** ** * * *** * ** *** * * ** ** **** * * **
}
answered by (64 points)
0 0
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Correct output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main()
{
* ** **** * * * ** **** *** * ** * *** **** ***** *
* *** *** * * * ** ** * ** * ** * *** **** * ** * * *
******** *** ** * * * **** *  *****\n");
*** ** *** **** * * ***** * * * *******\n");
* * ***** * ** * * * *** *** * * ****** ***
* ** ** * ** **** *** * *******\n");
** * **** * *** ******** * **  *****\n");
** ** **** ** ****** **** ** ** ** * * ***** * * **
** ** ** * *** * ** * * ** * ** * ** ** **** * *** **

}
answered by (64 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main(void)
{
** * * * * * * ****** * ** *** **** * *** **** ********* **
* * * *** * * ** * *** ** * * ** ** ** **** ***** ***
* * ** ** * ** ** * ******* ***  *****\n");
** * * **** *** ** * ***** *** **** *******\n");
*** * ** ****** *** * * * * * **** **
** ****** * **** ** **** ** * *******\n");
*** *** *** ** ******** * * *  *****\n");
**** ** * ** * **** ** ** * ** ** * **** **
* *** ** * * * * * * * ** ** ** ****** * *** *

* * ****** * * ** 0;
}
answered by (64 points)
0 0
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include <stdio.h>
int main(void)
{
****** * * * ******** * * * * ** * ** * * *** ** * * **** *
** ***** * * ** ** *** * * * * ** ** * * *** *
* *** ** **** ****** * ***  *****\n");
* ** ****** * ***** ** * ********* *******\n");
* * ******* * ** ** ** * * * ** *** * **
* * *** * * ** * * *** * * *******\n");
* *** *** * * * ** ** ***  *****\n");
* * * *** * ** * ** * ***** * *** ** * ** *
* * ***** ** *** * * * ****** * ** ** * * *
*** **** * * ** * * * ** * 0;

}
answered by (-168 points)
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 like 0 dislike
Hidden content!
#include<stdio.h>
int main(void)
{
** * ******* * * * ** * * * * ** * * ** * **** ********
* * * ** * ** ** **** * ** ** * ** * **** * ** * **
*** * ********* * * * ** ** *  *****\n");
** * * ** * * ** ** * * * *******\n");
* * * ** * * *** * **** ** * ** * ***
* * ** *** * ** * * * ***** *******\n");
** * ** **** * *** * **  *****\n");
*** ****** ******* ** **** * ****** ** * ** * ** * ***
*** * **** * * ** * ***** * * **** * * *** ** *** *** **

* * ******** ***** *** * 0;
}
answered by (-249 points)
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Wrong output
0 0
-----------Re-judge-----------
Case 0: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.7.60
©2016-2025

Related questions

1 like 0 dislike
92 answers
[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
| 14.6k views
0 like 0 dislike
0 answers
[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
0 like 0 dislike
30 answers
[Exercise] Coding (C) - asked Dec 21, 2017 in Chapter 11: Pointers
ID: 38255 - Available when: Unlimited - Due to: Unlimited
| 9k views
12,783 questions
183,442 answers
172,219 comments
4,824 users