Advertisement
H0_0H

Untitled

Dec 2nd, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long LL;
  4.  
  5. int fun(){
  6.     int sum = 0;
  7.     int n = 1;
  8.     while (n <= 25){
  9.         sum += n * n * n;
  10.         n += 1;
  11.     }
  12.     return sum;
  13. }
  14.  
  15. int main(){
  16.     printf("%d", fun());
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement