- you are not using the parameters of the function
- the types of the parameters are weird (min -> string, max -> number)
- line 38 may never be reached
- you have repeated code (11-14; 31-34)
- you call the function twice in each iteration
- you compare for equality instead of less and greater
- you didnt' write a question
int main()
{
int num = 0;
int max = 32;
while ( cout << "Please enter a number (min: no limit, max: "
<< max << "): " &&
cin >> num &&
max < num )
{}
}
What is the return type of the conditional expression?
What side effects does the expression have?
Could you move the expression into a function?
What input would that function require?
What output would that function produce?