Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I know the answers but i have no idea how to get them. can you please explain step by step. thank you! 1. What output

image text in transcribed

I know the answers but i have no idea how to get them. can you please explain step by step. thank you!

1. What output occurs for the following program on the given input user str input Enter a positive integer Line 1 my int int (user str) count 0 while my int 0 if my int 2 1: my int my int/2 else my int my int 1 count count 1 Line 2 print (count) Line 3 print (my int) Line 4 (a) Given user input of 11, what value is output by Line 3 of the program? (b Given user input of 12, what value is output by Line 4 of the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions