3
Contributors
3
Replies
45
Views
3 Years
Discussion Span
Last Post by JamesCherrill
0

Thank you for your reply.
The second option you mentioned I prefer better, so if I state:

double credits;
if (credits >= 1) && (credits < 9) {
//my code

It will work, right?

0

You're missing a set of brackets round the whole condiiton, but otherwize that's good.
ps It's usually quicker to try something simple like that yourself than to wait for someone to reply to you.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.