#include <stdio.h>
int main() {
int a, b=0;
for(a=0; a<=20; a++) {
printf("------------\n");
printf("a = %d\n", a);
printf("b = %d\n", b);
b=b+a;
printf("b = b + a = %d\n", b); //somma dei numeri da 0 a 20, più le somme parziali
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: