Lab 5

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> using namespace std; int main() { double a, n, s = 0; cin >> a; cin >> n; for (int i = 1; i <= n; i++) { s = 1 + 1.0/i; if (s < a){cout<<s<<" ";} } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines