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
Get step-by-step solutions from verified subject matter experts
