Question: 7
Write a python script to take input for a number check and print whether the number is multiple of 7 or not?
Sol:
n=int(input("Enter any no ")) if(n%7==0): print("Number is multiple of 7") else: print("Number is not multiple of 7")
Question: 8
Write a python script to take input for a number check and print whether the number is multiple of 5 or not?
Sol:
n=int(input("Enter any no ")) if(n%5==0): print("Number is multiple of 5") else: print("Number is not multiple 5")
Question: 9
Write a python script to take input for a number check and print whether the number is multiple of 7 or 11 not
Sol:
n=int(input("Enter any no ")) if(n%7==0 or n%11==0): print("Number is multiple of 7 or 11") else: print("Number is not multiple of 7 or 11")