subject

Here is a nested loop example that graphically depicts an integer's magnitude by using asterisks, creating what is commonly called a histogram: Run the program below and observe the output. Modify the program to print one asterisk per 5 units. So if the user enters 40, print 8 asterisks. num = 0while num >= 0: num = int(input('Enter an integer (negative to quit):\n')) if num >= 0: print('Depicted graphically:') for i in range(num): print('*', end=' ') print('\n')print('Goodbye.')

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 19:20
Which command suppresses the visibility of a particular row or column in a worksheet?
Answers: 1
question
Computers and Technology, 24.06.2019 20:50
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
question
Computers and Technology, 24.06.2019 23:00
Hypertension occurs when blood pressure is too high.
Answers: 1
question
Computers and Technology, 25.06.2019 08:30
Uses an iterative process that repeats the design, expansion, and testing steps as needed, based on feedback from users.
Answers: 1
You know the right answer?
Here is a nested loop example that graphically depicts an integer's magnitude by using asterisks, cr...
Questions
question
Social Studies, 11.10.2019 21:30
question
Mathematics, 11.10.2019 21:30
Questions on the website: 13722367