#include <stdio.h>
int a, b=0;
int main() {
for(a=0; a<=10; a++) {
printf("-------------\n");
printf("a = %d\n", a);
printf("b = %d\n", b);
b=b+a;
printf("b = b + a = %d\n", b);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: