c program boilerplate

Solutions on MaxInterview for c program boilerplate by the best coders in the world

showing results for - "c program boilerplate"
Adriana
26 Nov 2020
1#include <stdio.h>
2#define LAST 10
3      
4int main()
5{
6  int i, sum = 0;
7
8  for ( i = 1; i <= LAST; i++ ) {
9    sum += i;
10  } /*-for-*/
11  printf("sum = %d\n", sum);
12
13  return 0;
14}