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