#include
void main() {
long sum = 0L;
int count = 10; /* The number of integers to be summed */
int j = 0; /* The loop counter */
/* Sum integers from 1 to count */
for(j = 1 ; j <= count ; j++)
sum += j;
printf("\nTotal of the first %d numbers is %ld\n", count, sum);
}