Untitled
unknown
plain_text
3 years ago
252 B
5
Indexable
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
int x,y,n;
float a;
n = 1;
cin >> x >> y;
a = float(x);
while (true) {
a += (a / 100 * 70);
n += 1;
if (a >= y) break;
}
cout << n;
}Editor is loading...