zyulfi

Division_without_remainder

May 14th, 2025 (edited)
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | Source Code | 0 0
  1. # 7. Деление без остатък
  2. # Въведете две цели числа.
  3. # Ако първото се дели на второто без остатък, отпечатайте "Дели се". Иначе – "Не се дели".
  4.  
  5. num_one = int(input("Please enter a whole number: "))
  6. num_second = int(input("Please enter a whole number: "))
  7.  
  8. if num_one % num_second == 0:
  9.     print("The first number is divided by the second.")
  10. else:
  11.     print("The first number is not divisible by the second.")
Advertisement
Add Comment
Please, Sign In to add comment