1 喜歡 0 不喜歡
2.2k 瀏覽

Please take a look at the uncompleted program in the bottom and fill in the gaps to complete the program in order to display the following output:
Remember: Direct output or cheated output is always forbidden. TA always see your code after the OnlineJudge.

-12.123
-12.123456789
 -12.123456789
-12.123457
-12.12346
-12



Source Code:

#include <stdio.h>
int main()
{
    double x = -12.123456789;
    printf("______________\n", x);
    printf("______________\n", x);
    printf("______________\n", x);
    printf("______________\n", x);
    printf("______________\n", x);
    printf("______________", x);
    return 0;
}

 

[練習] Coding (C) - 最新提問 分類:Chapter 3: Formatted Input/Output | 用戶: (12.1k 分)
ID: 26464 - 從幾時開始: 無限制 - 到幾時結束: 無限制

修改於 用戶: | 2.2k 瀏覽

75 個回答

0 喜歡 0 不喜歡
內容已隱藏
#include * * *
int main()
{
* * * ** * * * * ** * ** *
-12.123456789
*** **** **
-12.123457
-12.12346
-12*/
* * ** ** ***** * *** * x = -12.123456789;
* * ** ** ** * * * * *** * **** * ***** * * * x);
* ** ** ** * ** ** ** * * * * x);
* * * ** ** * ** *** ***** * * ** * %.9lf\n", x);
*** * * ** * ** * * * * * * ** **** ** x);
* ** *** *** **** ** ** **** * ** *** x);
**** * * * * ** **** ** * * ** ** *** x);
* * * * ** ***** * * 0;
}
最新回答 用戶: (82 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include * * **** * *
int main()
{
* * ***** * *** * *** x = -12.123456789;

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


int main()
{
*** **** ** ** x = -12.123456789;
***** **** * ** ** * ** * * * *
* * ** * *** * ** * **** ***** * *** * *
** **** ** * ** *** ** * %.9f\n",x);
** *** ** * * **** **** *** ** *
** ***** * * ** * * * ** *** **** ***
*** * * ** **** ** ** * * ** **
 
** * ***** * * * * * 0;
}
最新回答 用戶: (-233 分)
0 0
Case 0: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main()
{
** *** ** * **** ** * x = -12.123456789;
******* *** ** * * ** * * ***** * x);
********** **** * * ** * *** * * * *** * * x);
* * * * *** *** ** * * ** %.9f\n", x);
** * * * ** *** * * * * * x);
* *** *** ** ** ** * * * * * *** x);
**** **** * ******* *** ** * **** * ** x);
*** * **** **** * ** * *** 0;
}
最新回答 用戶: (-32 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main()
{
**** * ** * * *** * * * * x = -12.123456789;
*** * * * * ** ** * ****** ** ** **** * ** x);
** * ** * * *** ** * **** **** * * * * ***** x);
*** *** * * * * ** * * *** ** **** ** ** * x);
** * * ***** ** ***** *** * *** * **** *** x);
** ** * * * ***** ** **** ********* * * x);
** *** ** * * * * * * **** ** *** x);
* ****** * * ** 0;
}
最新回答 用戶: (-32 分)
0 0
Case 0: Wrong output
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main()
{
* ** * ** * * * * * * ** ***** x = -12.123456789;
* * ** * * ***** * * * *** x);
**** * **** *** * **** * * *** *** x);
** * ** * ** * ** * * ** %.9f\n", x);
* **** * * ** * * *** ** *** * * *** x);
** *** * * ** * * ** * * ** * * * ** * * * x);
**** * ** * *** * * * ** ***** * x);
* * * *** * * * *** ** 0;
}
最新回答 用戶: (64 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include <stdio.h>
int main()
{
*** * *** * x=-12.123456789
** *** * **** ** * ** ** *** *** *
** ***** * * ** ** * * *** * ** **
* ** * * * ***** ** ** * ** *
** * * ** **** * *** * * * * *
*** ** *** *** ** ** * * * * *
** ** * * * ** * * *
*** **** ** * 0;
}
最新回答 用戶: (42 分)
0 0
prog.c: In function 'main':
prog.c:5:3: error: expected ',' or ';' before 'printf'
   printf("-12.123\n",x);
   ^~~~~~
prog.c:6:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("-12.123456789\n",x);
          ^~~~~~~~~~~~~~~~~
prog.c:7:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("-12.123456789\n",x);
          ^~~~~~~~~~~~~~~~~
prog.c:8:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("-12.1234567\n",x);
          ^~~~~~~~~~~~~~~
prog.c:9:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("-12.123456\n",x);
          ^~~~~~~~~~~~~~
prog.c:10:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("-12\n",x);
          ^~~~~~~
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>
int main()
{
******* ** ** * ** * * x = -12.123456789;
* * * ***** * * * * *** * *** *** * ** x);
* * ** ** * **** * *** * * ** ** ** *** ** *** * x);
** ** * ***** ***** ** * *** %0.9f\n", x);
* ** * * * * * ** *** ** * * ** *** x);
*** *** * * *** ** ** * * * * * * * * x);
************ ** * * ** * * ** *** * * ** *** x);
**** * * * ** * **** * 0;
}
最新回答 用戶: (-214 分)
0 0
Case 0: Correct output
0 喜歡 0 不喜歡
內容已隱藏
#include<stdio.h>
int main()
{

* ******** ** *** ** * x = -12.123456789;
** *** *** * * ****** * * **** * * x);
** * * * ** *** ** ** * ** ** ** * x);
**** ** * * ** ** ** * * *** * *** * *** x);
* * *** * * * * **** * *** *** ** * * * x);
** * **** * *** * * * * ** * * x);
* ** ** * * * * ** * ** *** ** * * * ** ** x);
* * ***** * * * * ** * 0;


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

int main()
{
* * ** * **** * **** * x = -12.123456789;
** * * ** * * * * ** * * *** *** * *** * x);
** ** * ** * * **** ***** * * ** * x);
* ** ** * * ** ***** ** * %.9f\n", x);
** * ** * * ** *** *** * **** * ** x);
** * * * ** * ******** ** ***** ** * x);
* ********* * * * * *** ** * * x);
** ** *** * * *** * * 0;
}
最新回答 用戶: (-498 分)
0 0
Case 0: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.58.185
©2016-2024

相關問題

3 喜歡 0 不喜歡
87 回答
[練習] Coding (C) - 最新提問 10月 12, 2017 分類:Chapter 3: Formatted Input/Output | 用戶: thopd (12.1k 分)
ID: 26463 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 2.5k 瀏覽
1 喜歡 0 不喜歡
0 回答
[Resource] 最新提問 10月 14, 2017 分類:Chapter 3: Formatted Input/Output | 用戶: thopd (12.1k 分)
ID: 26948 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 14 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶