In: Computer Science
Can you please write this in python thank you.
Consider 'x' being a number chosen by a user. Using python conditional statements, write a code that:
x=int(input("Enter a number: "))
if(x%3==0 and x%5==0):
print(x,"is a multiple of 3 and 5")
elif(x%7==0 or x%11==0):
print(x,"is a multiple of 7 or 11")
else:
#please undo the below comment to get a output which doesnt comes under the above conditions
#print("Not a multiple of 3,5,7,11")
print("")
Output:
NOTE: In the above question, there is no print statement given for the number that doesnt fall under either of the conditions. so comments are given if you want an answer, please remove comments from ' else' statement to get output for such numbers.