uri 1323 solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int n;
while(cin>>n)
{
if(n==0) break;
cout<<((n*(n+1))*(2*n+1))/6<<endl;
}
return 0;
}
uri 1323 solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int n;
while(cin>>n)
{
if(n==0) break;
cout<<((n*(n+1))*(2*n+1))/6<<endl;
}
return 0;
}
2 Comments
Bro nice site.❤️❤️
ReplyDeletethanks bro
Delete