lab5(38)

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> using namespace std; int main() { setlocale(LC_ALL, "ru"); int n; //n - натуральное число int S; //сумма прогресии cout << "Введите число" << endl; cin >> n; cout << endl; for (int i = 0; i < n; i++) { S = 1 / pow((2 * n + 1), 2); cout << S << endl; } }
Editor Settings
Theme
Key bindings
Full width
Lines