Answers for "c program boilerplate"

C
1

c program boilerplate

#include <stdio.h>
#define LAST 10
      
int main()
{
  int i, sum = 0;

  for ( i = 1; i <= LAST; i++ ) {
    sum += i;
  } /*-for-*/
  printf("sum = %d\n", sum);

  return 0;
}
Posted by: Guest on March-01-2021

Code answers related to "C"

Browse Popular Code Answers by Language