#include int main() { int i,j, acumulador=0; scanf("%d", &j); for(i=1; i<=j; i++) { acumulador = acumulador + i; printf("%d\n", acumulador); } }