Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 7. Деление без остатък
- # Въведете две цели числа.
- # Ако първото се дели на второто без остатък, отпечатайте "Дели се". Иначе – "Не се дели".
- num_one = int(input("Please enter a whole number: "))
- num_second = int(input("Please enter a whole number: "))
- if num_one % num_second == 0:
- print("The first number is divided by the second.")
- else:
- print("The first number is not divisible by the second.")
Advertisement
Add Comment
Please, Sign In to add comment