import math
start = 1;
end = 10;
total = 0;
count = end - start + 1
print("Average of numbers between %d and %d:\n" % (start, end))
while(start <= end):
total += start;
start += 1;
print("Total = %d" % total)
print("Count = %d" % count)
print("Average is %.2f" % float(total/count))