QuestionQ7Verified/Control Flow – Conditional Blocks and LoopsCopy linkReport a problemAsk AstroTutorSave questionHow many stars will the following snippet print to the console? AthreeBtwoConeShow AnswerAnswerExplanationThe loop executes for i = 2 and i = 0, since both values satisfy i >= 0. Each iteration prints one star, for a total of two stars.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion