Update version to 0.16
[ust.git] / tests / benchmark / average
CommitLineData
a4e826d7
PMF
1#!/usr/bin/python
2
3import sys
4
5def main():
6 total = 0.0
7 n = 0.0
8 while 1:
9 line = sys.stdin.readline()
10 if not line:
11 break
12
13 val = float(line)
14 n = n+1.0
15 total = total+val
16
17 print total/n
18main()
This page took 0.030476 seconds and 4 git commands to generate.