Untitled

 avatar
unknown
c_cpp
a year ago
685 B
1
Indexable
// ConsoleApplication1.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//

#include <iostream>
using namespace std;


int main()
{

	float hundred = 0, earned = 0; cin >> hundred >> earned; float res_prec =  earned/(hundred/100);

	if (res_prec >= 1 and res_prec <= 10) { cout << "1";}

	if (res_prec >= 11 and res_prec <= 50) { cout << "2"; }

	if (res_prec >= 51 and res_prec <= 70) { cout << "3"; }

	if (res_prec >= 71 and res_prec <= 84) { cout << "4"; }

	if (res_prec >= 85 and res_prec <= 100) { cout << "5"; }

	else { return 0; }

}