
Patrick B. answered 07/15/20
Math and computer tutor/teacher
#include <stdio.h>
int main()
{
int N;
printf(" Please input the value of N :>");
scanf("%d",&N);
long n = N*(N+1)/2;
printf("The sum of the first N (positive or negative)integers is +or- %ld \n",n);
}