Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- double n=0,q=0,r=0,f[100],sum=0, ats;
- cin>>q>>r;
- n=q*r;
- for(int i=0;i<n;i++)
- {
- cin>>f[i];
- sum+=f[i];
- }
- ats=sum/n;
- cout<<fixed<<setprecision(2)<<ats<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement