a53

Cumparaturi2

a53
Nov 10th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int s,d,r,m;
  7. cin>>s>>d>>r>>m;
  8. if(s>=d)
  9. cout<<"drona";
  10. else
  11. if(s>=r)
  12. cout<<"robot";
  13. else
  14. if(s>=m)
  15. cout<<"masina";
  16. else
  17. cout<<"nimic";
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment