Task 44

Run Settings
LanguageC++
Language Version
Run Command
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <cmath> using namespace std; int main() { int k, n, с; cout << "Vvedi k "; cin >> k; cout << "Vvedi n(max)>0"; cin >> n; с = sqrt(k*n); while(n>0) { n = n-1; с = sqrt(с + k*n); } cout << " " << с << endl; getchar(); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines