Challenge: Ask Favorite Number
Explore how to use conditional logic and branching in Java by creating a program that asks the user for their favorite number and responds differently if it is seven, even, or any other number. This lesson helps you understand decision-making in code to write interactive applications.
We'll cover the following...
We'll cover the following...
Ask the user for their favorite number: ...