i = 1;
while i < 100
    sum += i;
    i = i + 1;
    fprintf('%d\n',i);
end
