|
|
back to boardHere my solution Posted by yaho0o0 19 Mar 2009 13:46 #include <iostream> #include <stdio.h> using namespace std; int main() { int i,n,a; double o=0; cin>>n; for(i=1;i<=n;i++) { cin>>a; o+=a; } o/=n; fprintf(stdout,"%.6lf ",o); cout<<endl; return 0; } Edited by author 07.04.2009 21:17 No subject Posted by yaho0o0 21 Mar 2009 02:09 Edited by author 08.04.2009 12:58 |
|
|