Report Bug

QusWhat is the output of the following code? Qusनिम्नलिखित code का output क्या होगा?


A. 1 2 3
B. 1 2 3 4
C. 0 1 2 3
D. Infinite Loop


Solution




Explanation
i starts at 1. The loop executes while i <= 3, printing 1, 2 and 3. After printing 3, i becomes 4 and the loop terminates.

: i की initial value 1 है। while loop तब तक चलता है जब तक i <= 3 है। इसलिए 1, 2 और 3 print होते हैं। इसके बाद i की value 4 हो जाती है और loop समाप्त हो जाता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad