1.

Write a program to print “LinkedIn” if a number is divisible by 4 and 6, Linked if it is divisible by 4 and “in” if it is divisible by 6.

Answer»

def print_linked_in(NUMBER):
if number%4 == 0 and number%6 == 0:
print("LINKEDIN")
ELIF number%4 == 0:
print("LINKED")
elif number%6 == 0:
print("in")

 



Discussion

No Comment Found