Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab5(38)

Snippet info

Language

Cpp

Visibility

public

Author

buteskul5.6

Created

2018-10-24T09:19:36Z

Updated

2018-10-24T09:19:36Z

#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;
	}
}
INFO