Conditional statements lesson #1
Ok, in this lesson you are going to get the opportunity to use the if / else statements to write a program. If you need help executing this program use the previous set of videos as an aid. Most of the information that you need is contained inside those videos.
Assignment
Write a program and ask the user to enter a number.
The number should be between 1 to 10.
If the user enters a valid number, (between 1 to 10) display "Valid" on the console.
Otherwise, display "Invalid".
(This testing statement is used a lot in applications where values entered into input boxes need to be validated.)
Good luck
The number should be between 1 to 10.
If the user enters a valid number, (between 1 to 10) display "Valid" on the console.
Otherwise, display "Invalid".
(This testing statement is used a lot in applications where values entered into input boxes need to be validated.)
Good luck