#include // A program to compute the sum of the first n integers int main ( ) { int i, n, sum; printf ("Enter n.\n") ; scanf ("%d", &n) ; sum = 0; for (i=1; i<=n; i++) { sum = sum + i; } printf ("The sum of %d integers is %d\n",n,sum) ; return 0; }