Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long LL;
- int fun(){
- int sum = 0;
- int n = 1;
- while (n <= 25){
- sum += n * n * n;
- n += 1;
- }
- return sum;
- }
- int main(){
- printf("%d", fun());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement