C
void main()
{
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
if(i>0)
sum=sum+i;
}
printf("sum of positive numbers is %d",sum);
}
void main()
{
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
{
if(i>0)
sum=sum+i;
}
printf("sum of positive numbers is %d",sum);
}