Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // diff_translate.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int num;
- cin >> num;
- if( 1 < num <= 4 )
- cout << "few" << endl;
- goto stop;
- if( 5 < num <= 9 )
- cout << "several" << endl;
- goto stop;
- if ( 10 < num <= 19 )
- cout << "pack" << endl;
- goto stop;
- if (19 < num <= 49 )
- cout << "lots" << endl;
- goto stop;
- if (50 < num <= 99)
- cout << "horde" << endl;
- goto stop;
- if (100 < num <= 249)
- cout << "throng" << endl;
- goto stop;
- if (250 < num <= 499)
- cout << "swarm" << endl;
- goto stop;
- if (500 < num <= 999)
- cout << "zounds" << endl;
- if (num > 999)
- cout << "legion" << endl;
- if (num < 1)
- cout << "ERROR" << endl;
- stop: ;
- cout << "END" << endl;
- cin.get(); cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement