#include <stdio.h>
int main(void) {
int sum = 0;
int n = 1;
printf("ENter integers (0 to terminate): ");
while (n != 0) {
sum += n;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgc3VtID0gMDsKCWludCBuID0gMTsKCQoJcHJpbnRmKCJFTnRlciBpbnRlZ2VycyAoMCB0byB0ZXJtaW5hdGUpOiAiKTsKCQoJd2hpbGUgKG4gIT0gMCkgewoJCXNjYW5mKCIlZCIsICZuKTsKCQlzdW0gKz0gbjsKCQlwcmludGYoIiVkXG4iLCBzdW0pOwoJfQoJcmV0dXJuIDA7Cn0K