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.

The program states that "num - 10" if "num >100". However, num

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!