1 喜歡 1 不喜歡
8.8k 瀏覽

Please using only printf function to print out this shape:

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

 

[練習] Coding (C) - 最新提問 分類:Chapter 1: Introducing C | 用戶: (12.1k 分)
ID: 25287 - 從幾時開始: 無限制 - 到幾時結束: 無限制

修改於 用戶: | 8.8k 瀏覽
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 個回答

0 喜歡 0 不喜歡
內容已隱藏
#include * **** *

** *** main(void)

* *

** ** ** ** *** ** ****** ** * * * ***** * * * * * * *** * * ** * * ** * * ** * * **** * ******** ** * * ******* \n * ** * * * *** * * ** ** *** * ** ** **** * ");

* * ** * * *** ** 0;

}
最新回答 用戶: (-281 分)
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>

int main()
{
*** ** * ** * * ** ** * ** ** ** ** *** * ** ***
*** *** * ** * * * * * ** * ** * * ** *** * * *** *
* * * ***** ** * ** * ** **  *****\n");
****** ** ** * * *** ** * * * * *******\n");
**** *** ** * * * * ** * ****** * ** ******* * *
* **** * * ***** *** * * * * *******\n");
*** * * * **** * *** ** * ***** *  *****\n");
******* **** * ** * * *** * * * ** *** *** * ** *
*** * ** **** *** ** * ** * ** ** * * * ** * ** ***
* **** * ** ** 0;
}
最新回答 用戶: (82 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
***** ** * * ***

int main()
** * **** * *
{
    printf(" ** ** * * ** **** *
    * ** ** ** * *** ** ** **
* * * ******   ****** **** ** * * * * **
** * **** **   ** * * * ** * *
* * * **** *** ** *   * * * * * *** * * *
* * ** * * * *   * * ** ** ** **** *
* *** * * * * **** ** * * * **** ****** *
** * * ** **   * **** * ** * *** **** * * **
** ** * ***** ** ***   ** * * ***** * * * * *
*** * * * *** 0;
}
最新回答 用戶: (82 分)
0 0
Case 0: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>

int main() {
**** * * ** * * * * ** *** * * * ** ** * * *** * * *
* ** * * * * ***** * * ** * ** ******* ** * *
** * * * * *** * *** **  *****\n");
* ** *** * ***** * *** ** * * * ** *******\n");
**** **** *** **** * * * * * * *** * * **
** * * ** ** * * * ** * *** *******\n");
* * * * * **** ** * **** ** * * ***  *****\n");
* * * * * ** ** *** * ** * *** * * * * * ** * *** **
* *** *** **** *** *** * * * * ** * **** **** ** * *
}
最新回答 用戶: (-120 分)
0 0
prog.c:2:9: error: macro names must be identifiers
 #define \xe7\x9a\x84\xe5\x95\xa6 ;
         ^
prog.c: In function 'main':
prog.c:5:22: error: stray '\347' in program
     printf("    *\n")\xe7\x9a\x84\xe5\x95\xa6
                      ^
prog.c:5:23: error: stray '\232' in program
     printf("    *\n")\xe7\x9a\x84\xe5\x95\xa6
                       ^
prog.c:5:24: error: stray '\204' in program
     printf("    *\n")\xe7\x9a\x84\xe5\x95\xa6
                        ^
prog.c:5:25: error: stray '\345' in program
     printf("    *\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:5:26: error: stray '\225' in program
     printf("    *\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:5:27: error: stray '\246' in program
     printf("    *\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:6:5: error: expected ';' before 'printf'
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
     ^~~~~~
prog.c:6:23: error: stray '\347' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                       ^
prog.c:6:24: error: stray '\232' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                        ^
prog.c:6:25: error: stray '\204' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:6:26: error: stray '\345' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:6:27: error: stray '\225' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:6:28: error: stray '\246' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:7:24: error: stray '\347' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                        ^
prog.c:7:25: error: stray '\232' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:7:26: error: stray '\204' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:7:27: error: stray '\345' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:7:28: error: stray '\225' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:7:29: error: stray '\246' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                             ^
prog.c:8:25: error: stray '\347' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:8:26: error: stray '\232' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:8:27: error: stray '\204' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:8:28: error: stray '\345' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:8:29: error: stray '\225' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                             ^
prog.c:8:30: error: stray '\246' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                              ^
prog.c:9:26: error: stray '\347' in program
     printf("*********\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:9:27: error: stray '\232' in program
     printf("*********\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:9:28: error: stray '\204' in program
     printf("*********\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:9:29: error: stray '\345' in program
     printf("*********\n")\xe7\x9a\x84\xe5\x95\xa6
                             ^
prog.c:9:30: error: stray '\225' in program
     printf("*********\n")\xe7\x9a\x84\xe5\x95\xa6
                              ^
prog.c:9:31: error: stray '\246' in program
     printf("*********\n")\xe7\x9a\x84\xe5\x95\xa6
                               ^
prog.c:10:25: error: stray '\347' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:10:26: error: stray '\232' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:10:27: error: stray '\204' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:10:28: error: stray '\345' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:10:29: error: stray '\225' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                             ^
prog.c:10:30: error: stray '\246' in program
     printf(" *******\n")\xe7\x9a\x84\xe5\x95\xa6
                              ^
prog.c:11:24: error: stray '\347' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                        ^
prog.c:11:25: error: stray '\232' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:11:26: error: stray '\204' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:11:27: error: stray '\345' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:11:28: error: stray '\225' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:11:29: error: stray '\246' in program
     printf("  *****\n")\xe7\x9a\x84\xe5\x95\xa6
                             ^
prog.c:12:23: error: stray '\347' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                       ^
prog.c:12:24: error: stray '\232' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                        ^
prog.c:12:25: error: stray '\204' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                         ^
prog.c:12:26: error: stray '\345' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                          ^
prog.c:12:27: error: stray '\225' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                           ^
prog.c:12:28: error: stray '\246' in program
     printf("   ***\n")\xe7\x9a\x84\xe5\x95\xa6
                            ^
prog.c:13:20: error: stray '\347' in program
     printf("    *")\xe7\x9a\x84\xe5\x95\xa6
                    ^
prog.c:13:21: error: stray '\232' in program
     printf("    *")\xe7\x9a\x84\xe5\x95\xa6
                     ^
prog.c:13:22: error: stray '\204' in program
     printf("    *")\xe7\x9a\x84\xe5\x95\xa6
                      ^
prog.c:13:23: error: stray '\345' in program
     printf("    *")\xe7\x9a\x84\xe5\x95\xa6
                       ^
prog.c:13:24: error: stray '\225' in program
     printf("    *")\xe7\x9a\x84\xe5\x95\xa6
                        ^
prog.c:13:25: error: stray '\246' in program
     printf("    *")\xe7\x9a\x84\xe5\x95\xa6
                         ^
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main ()
{

* * *** *** * * ** * *** * *** *** * * * ** * * *******
*** **** ** * * * * * * * * ** * ** * ** * *
* ******* *** ** ** * *** * ******  *****\n");
** ***** ***** ***** ** ***** * *******\n");
*** * ***** ** * * ** * * *** * **
** * **** **** * * * *******\n");
* * *** ** ******* * * * ** ** ** * ** * * ***
* * * * * * *** ***** * ** * * * ***** * * ***
* ** ** ***** * ** * * * * ** ** ***** ** *
return 0;
}
最新回答 用戶: (-167 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main ()
{

* ** * * * *** * * **** *** ***** *** * ***** * * *** *** *
*** ******* ** **** ** *** * ** ** * * ** * * *
* * * * ** * ** * *** * ** * *  *****\n");
* * * *** **** * ** * * * * ** * ** *******\n");
** * * * *** * * * *** * * * ** * ** * * ** **** *
* ***** ** * * * * *** ****** *******\n");
** ** *** * ** ** ** **  *****\n");
** *** * * * ** * ** * ** ******* * *** * ** ***
* * ***** * * * ** * ** *** *** ** ** ** * ** ** *

** * * * *** * * ****** 0;
}
最新回答 用戶: (-167 分)
0 0
Case 0: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include ** ** ****

int main()
{
**** ** * * * * * * ** **** **** ***
** ** ** * ** ** *** ** * *
*** *** * * ** * ** * *
* * * * * ** * *
*** * * * * *** * * *****
* ****** * * * * **
printf(" *** **** * **
printf(" ** * ** **
printf(" ** ** * *** * *** *
}
最新回答 用戶: (-140 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>

int main()
{
* * * * * * *
******* ** ** ****** * ** ** ** * * ** *** * * * *
* **** ** **** **** * * ** ** * * *** **** * ** ** * *
* **** *** * * *** * *  *****\n");
*** *** * ** **** *** * ***** * * * *******\n");
* * * **** ** * * * ** ** ** * * * ** **
** * * ** *** * ******* ****** *******\n");
** ***** ** *** * * ** **** * *  *****\n");
* * ** ** ** * * * * * * ** ** *** * ** * **** **
** * ** *** * ** * * ** *** * * *** * ***** * * **** *
** *** ** ** ***** * *
** *** ** * **** * * * 0;
}
最新回答 用戶: (-193 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include * * * * * ***
int main (){
*** * * *** ***** * **** ***** ****
** *** ** * ** * * * * * **
printf(" ** *** ****** * *
* * * **** ** *
* * * * ** * ***** ** ** *
**** * * * ** ** **
printf(" * * *** *
** ** ** * ** ** **** * **
* * * *** *** * ** * * ** * **
return 0;
}
最新回答 用戶: (16 分)
0 0
Case 0: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include ** * * ** * *
int main (){
******** * * * * * * * *** ** * *
*** * * * ** ** *** ** * * **
printf(" ** *** *
*** ** * * * * **
* * ** *** *** ** * **
* ** * *** * *** *** * ****
printf(" * * ** * * * *
** *** ** ** * **** * ** *
* ***** ** *** ** ** * * ** * *
return 0;
}
最新回答 用戶: (16 分)
0 0
Case 0: Wrong output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.178.90
©2016-2024

相關問題

1 喜歡 0 不喜歡
92 回答
[練習] Coding (C) - 最新提問 9月 21, 2017 分類:Chapter 1: Introducing C | 用戶: thopd (12.1k 分)
ID: 25286 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 5.3k 瀏覽
0 喜歡 0 不喜歡
0 回答
[Resource] 最新提問 10月 14, 2017 分類:Chapter 1: Introducing C | 用戶: thopd (12.1k 分)
ID: 26946 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 13 瀏覽
0 喜歡 0 不喜歡
30 回答
[練習] Coding (C) - 最新提問 12月 21, 2017 分類:Chapter 11: Pointers |
ID: 38255 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 3.3k 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶