Question: 5. Write a Python program that prompts the user for any integer value between 1 and 10, inclusive. In your code, assign a variable called

5. Write a Python program that prompts the user for any integer value between 1 and 10, inclusive. In your code, assign a variable called MAXVAL a value of 100. Use a loop (your choice of which kind) to print out all of the integers between 1 and MAXVAL, inclusive, that are multiples of that number. Write your code so that you can just change the value of MAXVAL and the code will work.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!