Untitled
unknown
c_cpp
2 years ago
551 B
2
Indexable
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n >= 1 and n <= 4) { cout << "few"; } if (n >= 5 and n <= 9) { cout << "several"; } if (n >= 10 and n <= 19) { cout << "pack"; } if (n >= 20 and n <= 49) { cout << "lots"; } if (n >= 50 and n <= 99) { cout << "horde"; } if (n >= 100 and n <= 249) { cout << "throng"; } if (n >= 250 and n <= 499) { cout << "swarm"; } if (n >= 500 and n <= 999) { cout << "zounds"; } if (n >= 1000) { cout << "legion"; } }
Editor is loading...
Leave a Comment