QuestionQ221Verified/Control Flow – Conditional Blocks and LoopsCopy linkReport a problemAsk AstroTutorSave questionWhat output will the following code produce? A1 | Hello2 | HelloB1 | Hello2 | Hello3 | HelloC1 | Hello2 | Hello3 | Hello4 | HelloDAn infinite loop.Show AnswerAnswerExplanationThe while num > 0 loop prints Hello once per iteration and decrements num from 3 to 0, producing Hello three times.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion