Advertisement
Nenogzar

Untitled

Jan 10th, 2024
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. number_divisor = int(input())
  2. number_boundary = int(input())
  3.  
  4. target_number = next((number for number in range(number_boundary, 0, -1) if number % number_divisor == 0), 0)
  5.  
  6. print(target_number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement