Untitled
unknown
c_cpp
2 years ago
522 B
5
Indexable
#include <iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Russian");
int a, b;
cin >> a >> b;
if ((100 * b) / a == 0) {
cout << 0;
}
if ((100 * b) / a >= 1 and (100 * b) / a <= 10) {
cout << 1;
}
if ((100 * b) / a >= 11 and (100 * b) / a <= 50) {
cout << 2;
}
if ((100 * b) / a >= 51 and (100 * b) / a <= 70) {
cout << 3;
}
if ((100 * b) / a >= 71 and (100 * b) / a <= 84) {
cout << 4;
}
if ((100 * b) / a >= 85 and (100 * b) / a <= 100) {
cout << 5;
}
}Editor is loading...