5 喜歡 0 不喜歡
189 瀏覽

Write a program that reads the number of students who passed and failed in the exams and displays the percentages. For example:

輸入及格與不及格人數
輸出及格與不及格百分數

Example input:

12 8

Example output:

Success Ratio: 60%
Fail Ratio: 40%
[正常] Coding (C) - 最新提問 分類:Introduction to Computer Programming I (C) | 用戶: (9.9k 分)
ID: 25955 - 從幾時開始: 無限制 - 到幾時結束: 無限制

標籤修改 用戶: | 189 瀏覽

3 個回答

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

int main()
{
** * * * **** ** pass, fail;
* ***** *** *
** * * ** * **** ** ***** *** * * **** &pass, &fail);
* * * * * *
* * * ** ** * * ** * * * ** * * Ratio: ** ** * ** *** *** * **
**** * ***** * **** * * ** ** Ratio: * * * *** **** ** ****
* * *** *** * *** *

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

int main()
{
** ** ** ***** * pass, fail;
* ** * **** ***
* * * ***** * ** **** * * * * *** * &pass, &fail);
*** * **** *
** * ** * * * ** ** Ratio: %.0lf%%\n", **** * * *
** * ** ** ** **** **** *** Ratio: * * ** * * ** ****** * *
* * * *** * *

* ** * * * * * * 0;
}
最新回答 用戶: (-233 分)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 喜歡 0 不喜歡
內容已隱藏
#include *** * **** *
int main(void)
{
** * * * ** **** * ** a,b,c,d,e;
* *** * * *** ** * *** * ** *** ** *** ****
* *** ** ***** * * **** * ** *
* ** ****** * * * ** * * **** *
* * * * ***** * * ** * *
*** * ** * * * ** ** *** ** Ratio: %g%%\n",d);
* *** * **** * * * ** *** **** ** ** Ratio: %g%%",e);
* * * *** * *** ** * 0;
}
最新回答 用戶: (-229 分)
0 0
Case 0: Correct output
Case 1: Correct output
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.126.237
©2016-2024

相關問題

6 喜歡 0 不喜歡
2 回答
[正常] Coding (C) - 最新提問 10月 16, 2017 分類:Introduction to Computer Programming I (C) | 用戶: thopd (12.1k 分)
ID: 27175 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 225 瀏覽
6 喜歡 0 不喜歡
3 回答
[正常] Coding (C) - 最新提問 10月 16, 2017 分類:Introduction to Computer Programming I (C) | 用戶: thopd (12.1k 分)
ID: 27167 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 216 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶