daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main (void)
  5. {
  6.   int a, b;
  7.   int i = 0;
  8.  
  9.   cin >> a >> b;
  10.  
  11.   while(a<=b)
  12.   {
  13.     a = a * 3;
  14.     b = b * 2;
  15.    
  16.     i++;
  17.    
  18.   }
  19.  
  20.   cout << i << endl;
  21.  
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top