#include using namespace std; int main() { float B=0,A=2; for(float K=1;;K++){ B=B+(1/K); if(B>A){ cout << B << endl; cout << K << endl; return 0; } } }