rev='made'/> name='keywords'/> name='author'/> ANURANAN: UVa Solution 10079: Pizza Cutting

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 10079: Pizza Cutting


#include<stdio.h>

int main()
{
long int N;
  while(scanf("%ld",&N)==1)
          {
               if(N>=0&&N<=210000000)
               printf("%ld\n",(N*N+N+2)/2);
              if(N<0)
              break;
            }
return 0;
}

No comments:

Post a Comment