Sail E0 Webinar
Question
What is the output of the given code?a = 5b=10while a
Options:
A .  5 10
B .  50 56
C .  Infinite loop
D .  5 6 7 8 9 10
Answer: Option B


The do statement here indicates that till the while condition is true execute the instructions and will print a*b only till a
Output:
50
56



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers