Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int x,y,z;
- float med=0;
- cin>>x>>y>>z;
- med=(float)(x+y+z)/3.0;
- cout<<std::setprecision(2);
- cout<<std::fixed<<med;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement