Advertisement
alex326

Untitled

Jan 28th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. problema 173
  2.  
  3. #include <iostream>
  4. using namespace std;
  5. int main(){
  6. int x, y, z, m;
  7. cin>>x>>y>>z;
  8. m = (x+y+z)*100/3;
  9. cout<<m/100<<"."<<m%100;
  10. if(m%100%10==0)cout<<0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement