Step-by-step explanation:
Intital value of variable "NUM" is 10 when while loop execute for the first time , it check the condition ( num<10) and founds this FALSE. So the statement inside execute if while loop doesn't execute then it will not going to change the value of "NUM " . That is why the value of "NUM" will remain same i.e NUM 10