Question: The program states that num - 10 if num >100. However, num = 100 (not less than or equal to 100). So why does the
The program states that "num - 10" if "num >100". However, num = 100 (not less than or equal to 100). So why does the program output 90 instead of 100? Explain clearly please.

public static void main(String[] args) { int num = 100; if (num > 100); { num num 10; } System.out.println(num); =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
