Answer:
The correct answer is Infinite times .
Step-by-step explanation:
Here var num=10;
while(num>0)
{
}
10>0 condition is true
but no increment or decrement of num. That is why num >0 is always TRUE So the loop will run for infinite times and execute the statement inside of loop every time. This loop will never terminate.
The syntax of while loop
while(condition checking)
{
statement
increment/decrement;
}
In the given code no increment /decrement so output is infinite times.