int sdal, nesdal;
cout << "passed the exam:";
cin >> sdal;
cout << "failed the exam:";
cin >> nesdal;
int res = sdal + nesdal;
cout << "passed the exam " << sdal * 100.0 / res << endl;
cout << "failed the exam " << nesdal * 100.0 / res << endl;
system("pause");
cout << "passed the exam:";
cin >> sdal;
cout << "failed the exam:";
cin >> nesdal;
int res = sdal + nesdal;
cout << "passed the exam " << sdal * 100.0 / res << endl;
cout << "failed the exam " << nesdal * 100.0 / res << endl;
system("pause");
Комментариев нет:
Отправить комментарий