Question: Write a program named divisibility _ checker.py that asks the user for two positive numbers: N ( the maximum number ) and D ( the
Write a program named divisibilitychecker.py that asks the user for two positive numbers:
N the maximum number and D the divisor The program should find all numbers from
to N that are divisible by D For each of those numbers, the program should also check if the
number is even or odd and print that information.
Important:
Use one for loop and one while loop in your solution. You can decide which loop is
on the outside and which one is on the inside.
The program should handle cases where no numbers between and N are divisible by
D
Example program run : underlined parts indicate what the user enters
Enter the value of N:
Enter the value of D:
Numbers divisible by :
is even
is even
is even
is even
is even
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
