What is the output of the following code snippet? int num =…
What is the output of the following code snippet? int num = 100;if (num < 100){ if (num < 50) { num = num - 5; } else{ num = num - 10; } }else{ if (num > 150){ num = num + 5; } else{ num = num + 10; }}System.out.println(num);