Project Euler – Problem 6

Problem 6:
What is the difference between the sum of the squares and the square of the sums?

#include 
 
using namespace std;
 
int main() {
        long long sum = 100*101/2;
        long long sq_i_sum = 0;
        for(int i =0; i<=5; i++){
                sq_i_sum += i*i;
        }
        long long diff = sum*sum-sq_i_sum;
        cout << "sum " << sum << " sq_i_sum " << sq_i_sum << " diff: " << diff;
        return 0;
}