clear;

sum = 0;
x = input("dose timh ");
c = 0;
while x!=0
    sum = sum + x;
    c = c + 1;
    fprintf("after adding %.1f the sum becomes %.1f\n", x, sum);
    x = input("dose timh ");
end
if c>0
    mo = sum / c;
    fprintf("Average %.1f\n", mo);
else
    disp("No values")
end
