14 lines
365 B
Python
14 lines
365 B
Python
# Question: Write a Python program to check whether a number is divisible by both 5 and 11.
|
|
|
|
def main(num: int) -> None:
|
|
if num % 5 == 0 and num % 11 == 0:
|
|
print(f"{num} is divisible by both 5 and 11.")
|
|
else:
|
|
print(f"{num} is not divisible by both 5 and 11.")
|
|
|
|
if __name__ == '__main__':
|
|
main(55)
|
|
main(22)
|
|
main(10)
|
|
main(121)
|