lkraichev

Untitled

Sep 25th, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double speed;
  9. cin >> speed;
  10.  
  11. if (speed <= 10) {
  12. cout << "slow" << endl;
  13. }
  14. else if (speed <= 50) {
  15. cout << "average" << endl;
  16. }
  17. else if (speed <= 150) {
  18. cout << "fast" << endl;
  19. }
  20. else if (speed <= 1500) {
  21. cout << "ultra fast" << endl;
  22. }
  23. else {
  24. cout << "extremely fast" << endl;
  25. }
  26. return 0;
  27. }
Add Comment
Please, Sign In to add comment