#include <iostream> using namespace std; int SumOfSquares() { int sum=0; for (int i=1; i<=100; i++) sum+=i*i; return sum; } int SquareOfSum() { int sum=0; for (int i=1; i<=100; i++) sum+=i; return sum*sum; } int main() { cout << SumOfSquares() << endl; cout << SquareOfSum() << endl; cout << SquareOfSum()-SumOfSquares() << endl; return 0; }