So here is my code:
int main() { int i, userInput; cout << "Enter max range: "; cin >> userInput; i = 1; do {