Don't use multiple returns, they are a stylistic nightmare.
use else with your alternate logical paths.
&& is the logical AND operator.
consider the "switch" statement, if your teacher has told you of it.
__________________
--
Man Alone
=======
Abstainer: a weak person who yields to the temptation of denying himself a pleasure.
Ambrose Bierce, The Devil's Dictionary.
|