lab 5 task 223

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include "cmath" using namespace std; int main () { double n = 0, a = 1; cout << "-----------------" << endl; while (a > 0.05) { a = trunc((1 / (n + 1)) * 1000) / 1000; cout << "| A(" << n << ") = " << a << "\t|" << endl; n++; } cout << "-----------------" << endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines