Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
336 B
0
Indexable
Never
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
	float a, b, c;
	cin >> a >> b;
	c = b / a;
	if (c == 0)cout << "0";
	if (c > 0 && c <= 0.1)cout << "1";
	if (c > 0.1 && c <= 0.5)cout << "2";
	if (c > 0.5 && c <= 0.7)cout << "3";
	if (c > 0.7 && c <= 0.84)cout << "4";
	if (c >= 0.84)cout << "5";
}