#include <stdio.h>
int main() {
int num, sum = 0;
int i = 1;
while (i <= 5) {
printf("Enter an integer #%d: ", i
); sum += num;
i++;
}
printf("The summation is %d.\n", sum
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBudW0sIHN1bSA9IDA7CiAgICBpbnQgaSA9IDE7CgogICAgd2hpbGUgKGkgPD0gNSkgewogICAgICAgIHByaW50ZigiRW50ZXIgYW4gaW50ZWdlciAjJWQ6ICIsIGkpOwogICAgICAgIHNjYW5mKCIlZCIsICZudW0pOwogICAgICAgIHN1bSArPSBudW07CiAgICAgICAgaSsrOwogICAgfQoKICAgIHByaW50ZigiVGhlIHN1bW1hdGlvbiBpcyAlZC5cbiIsIHN1bSk7CiAgICByZXR1cm4gMDsKfQ==