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