Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul255 authored Nov 20, 2018
1 parent 401bf75 commit 8374432
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 200B.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>

using namespace std;

int main()
{
float n,m,value=0,vol,i;
cin>>n;
for(i=0;i<n;i++)
{
cin>>m;
value=value+m;
vol=value/n;
}
cout<<vol<<endl;
return 0;
}

0 comments on commit 8374432

Please sign in to comment.