using namespace std;
#include <iostream>
#include <conio.h>
#include <cmath>
int main()
{
int sum = 0;
for (int i = 1; i < 11; i++)
cout << 2 * pow(i, 2) + 5 * (i) - 3 << "\n";
return 0;
}
Code outputs 4 15 30 49 72 99 130 165 204 247 but I need also calculate the sum of this numbers. How can I do this