|
|
|
The Boolean TyroThis if-statement returns a value:
Can you figure out a way to do the same thing with a single return statement? Hint: determine what value should be returned when isHappy is true and when isHappy is false. |
||
Below, write return. Then check your answer. |
||
|
|
||
|
Help
| Glossary
|
|
| © 2002 Copyright Cornell University | |