Read integers and calculate:

alt text

  • @Just_kiss_me, please use the Russian language - angry

1 answer 1

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

  • so I didn’t understand the assignment cap, but your code was adopted by the system) thanks a lot, I’m a beginner in this business and try to get comfortable) - noobok