Question: 3 . 1 2 ( Check a number ) Write a program that prompts the user to enter an integer and checks whether the number
Check a number Write a program that prompts the user to enter an integer and checks
whether the number is divisible by both and divisible by or or just one of
them but not both
Sample Run for Exercisepy
Enter input data for the program Sample data provided below. You may modify it
Show the Sample Output Using the Preceeding Input
Execution Result:
commandpython Exercisepy
Enter an integer:
Is divisible by and False
Is divisible by or False
Is divisible by or but not both? False
command
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
