Read integers and calculate:

If elementary code the formula, then:
#include <iostream> using namespace std; int main() { int n = 50; double s = 0; for (int i = 1; i <= n; i++) { s += 1.0/(i * i * i); } cout << s << endl; } there is only a question about what we are talking about in words:
Read any int as input
Source: https://ru.stackoverflow.com/questions/35837/
All Articles