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