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!#include <stdio.h>#include * * * *** * ** * * int main(){**** * * ** ** ** * * a,b;* * ** * * ** ** ** * * * * **** * ** * *** *** * * * * * ** ** ** * * ** ** * Ratio: ** * * * ** * * * * * * * *** * * * * ** * * * Ratio: * * * * * * * ** * * ** * * * 0;}
Hidden content!#include <stdio.h>int main(void){ * ** * * ** ** * *** * * * a,b;* * * *** * * * * * * c,d; * * * * ** * ** * * * ** * *** * * * * ** ** ** ** * ** * * ** ** *** ** * *