Advertisement
medajibka

3.5

Apr 18th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2. int main() {
  3.  
  4.     int sum = 0;
  5.     for (int i = 1; i <= 10; i++) {
  6.         sum += i * i * i;
  7.     }
  8.     cout << "Result = " << sum << endl;
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement