summ = 0
for i in range(3,51):
summ += i*(i+1)
print(summ)
C++:
#include <iostream>
using namespace std;
int main() {
long int s = 0;
for (int i = 3; i < 51; i++)
s += i*(i+1);
cout << s;
return 0;
}
summ = 0
for i in range(3,51):
summ += i*(i+1)
print(summ)
C++:
#include <iostream>
using namespace std;
int main() {
long int s = 0;
for (int i = 3; i < 51; i++)
s += i*(i+1);
cout << s;
return 0;
}