#include<iostream.h>
void main()
{
int a,n,sum=0;
cout<<"Enter nth term of series i.e last term"<<endl;
cin>>n;
for(a=1;a<=n;a++)
{
sum=sum+a;
}
cout<<"Sum of Series is::"<<sum;
}