UVA 10302 - Summation of Polynomials

Problem PDF

Solution:

#include
#include
int main()
{
long double n,sum;
while(scanf("%Lf",&n)==1)
{
sum=(n*n*(n+1)*(n+1))/4;
printf("%.0Lf\n",sum);
}
return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10302/10302.cpp