Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- double a, b = 2;
- cout << "Vvedite a" << endl;
- cin >> a;
- while (a <= 1 + 1 / b)
- b += 1;
- cout << 1 + 1 / b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement