Advertisement
SergeyPGUTI

4.2.13

Oct 1st, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     double x,y;
  9.     int i=1;
  10.     cin>>x>>y;
  11.     while(x<y)
  12.     {
  13.         x*=1.1;
  14.         i++;
  15.     }
  16.     cout<<i;
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement