rev='made'/> name='keywords'/> name='author'/> ANURANAN: UVa Solution 12149 : Feynman

Welcome Note

Hi,
I'm Anisuzzaman Babla . I am a full stack Android Application Developer. I am working with Android for more than two years. I have completed my graduation from IIT, Jahangirnagar University. I have developed a series of commercially successful apps on Android. Moreover, 10+ of my Apps are live at Google play store. .
Thank You

UVa Solution 12149 : Feynman

#include <stdio.h>
int main()
{
int a,i;
while(scanf("%d",&a)==1 && a!=0)
{
unsigned long long s,sum=0;
for(i=1;i<=a;i++)
{
s=i*i;
sum=sum+s;
}
printf("%llu\n",sum);
}
return 0;
}

No comments:

Post a Comment