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