#include using namespace std; int main(){ double a,b=2,c; cin>>a; for(c=1;c>=0;c++){ a-=b; b*=0.98; if(a<=0) break; } cout<<c; return 0; }

0 comments

No comments so far...