import std; print("How many numbers? "); let n = read_num(); let mut sum = 0; let mut i = 0; while i < n { print("Enter number "); printn(i+1); println(": "); sum = sum + read_num(); i = i + 1; }; print("Average is: "); printf32ln(sum as F32 / n as F32);