num = int(input("Введите трехзначное число: "))

first_digit = num // 100

second_digit = (num // 10) % 10

third_digit = num % 10

if first_digit == second_digit or second_digit == third_digit or first_digit == third_digit:

print(1)

else:

print(0)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.