n=int(input())s=0for i in range(n): x=float(input()) s=s+x sr=s/nprint(sr)
6 -10 7.5 8.5 3 2 4
2.5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!