#include <stdio.h> int da(int n1, int n2) { int sum = 0, i = 0; for(i = n1; i <= n2; i++) sum += i; return sum; } int main(void) { int a = 1, b = 100; int c = 0; c = da(a, b); printf("%d \n", c); return 0; }