Write a program that asks an integer as the users input It t

Write a program that asks an integer as the user\'s input. It then outputs the numbers by which the input is divisible. Test divisibility from 2 to 9. Your program should behave like the examples below. Write your answer in the paper attached to your answer sheet. Use proper syntax and indentation. Enter a number: 56 Divisible by 2 Divisible by 4 Divisible by 7 Divisible by 8 Enter a number: 9 Divisible by 3 Divisible by 9 Enter a number: 5 Divisible by 5

Solution

Code:

 Write a program that asks an integer as the user\'s input. It then outputs the numbers by which the input is divisible. Test divisibility from 2 to 9. Your pro

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site