i created this program and it works perfictly but how do i make it so all the numbers,that this loop prints out, add together?
heres the code
#include<iostream>
using namespace std;
int main()
{
int i,n,a,b;
b=1;
n=1;
i=100;
a=100;
while (n<=i){
cout<<n*26*n<<endl;
n=n+1;
}
system ("pause");
}