0 out of 464 challenges solved
Write a Python function `closest_smaller_number(n: int) -> int` that takes an integer `n` and returns the closest smaller number than `n`. #### Example Usage ```python [main.nopy] closest_smaller_number(11) # Output: 10 closest_smaller_number(7) # Output: 6 closest_smaller_number(12) # Output: 11 ``` #### Constraints - The input `n` will always be a positive integer greater than 1.
def closest_smaller_number(n: int) -> int: """ Returns the closest smaller number than the given integer n. Args: n (int): A positive integer greater than 1. Returns: int: The closest smaller number than n. """ # Placeholder for the solution pass