Java Programming Tutorial – Lesson #5 – If-Statements (If, Else-If, Else)

This is the 5th video in the Java Programming Tutorial series and we are going over basic if-statements. If – Else if – Else will all be covered as well. Homework challenge below.

Lesson 5 Homework challenge:
Write a program that lets the user enter a number, and the program will say whether that number is divisible by 2, 3, 7, and 11. (Hint: Remember the % operator)

Post Author: hatefull