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%
Hidden content!* * * * ** * *int main(){ * * * * * *** *** * pass, fail;* * * * * * ** * ** * ** ** * * ** * * * * * * *** &pass, &fail); ** * * * * * * * * ** * *** ** ** * * Ratio: * * * *** ** * * * * * * * * * * * * ** * *** ** * Ratio: ** * * ** ** *** * * * * * ** * * * * * * ** ** ** ** * ** 0;}
Hidden content!* * * ** **** * ** * * ** ** * * * int main(){ * * * ** * * * *** ** * * pass, fail;* ***** * * * ** * * ** * * * * * * * * ** * * * ** ** &pass, &fail); *** * * * * * * ** * ** * * **** * * ** * Ratio: %.0lf%%\n", ** *** * * **