QuestionQ178Verified/Control Flow – Conditional Blocks and LoopsCopy linkReport a problemAsk AstroTutorSave questionHow many hash (#) characters does this code print to the screen? AthreeBzero (the code outputs nothing)CfiveDoneShow AnswerAnswerExplanationInteger floor division changes floor from 10 to 2, then from 2 to 0, so the loop prints two hash characters. Because the loop ends without a break, the loop else clause also runs and prints one more, producing three hashes total.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion