Remove the int keyword from your b = l + b; line (5)Code:for(i=0; i < a; i++) { printf("Your Number(s): "); scanf("%d", &l); int b = l + b; }
Remove the int keyword from your b = l + b; line (5)Code:for(i=0; i < a; i++) { printf("Your Number(s): "); scanf("%d", &l); int b = l + b; }