Question: 1 print (Enter a number: ) Small Factors 2n= int (input()) 3 if A whole number n is divisible by another whole number f if
1 print ("Enter a number: ") Small Factors 2n= int (input()) 3 if A whole number n is divisible by another whole number f if f evenly divides n (i.e, there is a third whole number g such that fg=n, or equivalently, fn=g ). f is called a divisor of n. Your task is to write a Python program prompts the user with 'Enter a number. " and takes a number as input and outputs which positive numbers strictly greater than 1 and strictly less than 10 it is divisible by. For each divisor of the input number, your program should output x is a divisor of n. Where x is replaced by the divisor and n is replaced by the input number. Each of these outputs should be on its own line. For example if the input number is 6 , the output should be: 2 is a divisor of 6 . 3 is a divisor of 0. 6 is a divisor of 0 , Note that the Enter a number: prompt is supplied, so you don't need to do that bit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
