Wednesday, May 30, 2018

UVA - 10302 .cpp file

#include<stdio.h>
int main()
{
    long long n,sum=0 ;
    while(scanf("%lld",&n)!=EOF)
    {
        sum=n*n*(n+1)*(n+1)/4;
        printf("%lld\n",sum);
    }
    return 0;
}

No comments:

Post a Comment