Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. // diff_translate.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. int num;
  11. cin >> num;
  12.  
  13. if( 1 < num <= 4 )
  14. cout << "few" << endl;
  15. goto stop;
  16.  
  17. if( 5 < num <= 9 )
  18. cout << "several" << endl;
  19. goto stop;
  20.  
  21. if ( 10 < num <= 19 )
  22. cout << "pack" << endl;
  23. goto stop;
  24.  
  25. if (19 < num <= 49 )
  26. cout << "lots" << endl;
  27. goto stop;
  28.  
  29. if (50 < num <= 99)
  30. cout << "horde" << endl;
  31. goto stop;
  32.  
  33. if (100 < num <= 249)
  34. cout << "throng" << endl;
  35. goto stop;
  36.  
  37. if (250 < num <= 499)
  38. cout << "swarm" << endl;
  39. goto stop;
  40.  
  41. if (500 < num <= 999)
  42. cout << "zounds" << endl;
  43.  
  44.  
  45. if (num > 999)
  46. cout << "legion" << endl;
  47.  
  48. if (num < 1)
  49. cout << "ERROR" << endl;
  50.  
  51. stop: ;
  52. cout << "END" << endl;
  53.  
  54. cin.get(); cin.get();
  55. return 0;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement