00001 00002 #include "stdinc.h" 00003 00004 main() { 00005 00006 int n = 0; 00007 real x; 00008 real sum = 0; 00009 00010 while (cin >> x) { 00011 n++; 00012 sum += x; 00013 } 00014 00015 cout << "n, mean = " << n << " " << sum/n << endl; 00016 00017 }