Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab5(212)

Snippet info

Language

Cpp

Visibility

public

Author

misha127831

Created

2018-12-20T16:39:33Z

Updated

2018-12-20T16:39:33Z

#include <iostream>
using namespace std;

int main() {
int n=0;
double an,eps=1e-6;
do
{
    n++;
    an=1.0/((n+1.0)*(n+1.0));
    cout<<an<<endl;
}while(an>=eps);
cout<<n;
}
INFO