num = int(input("Введите число: "))
# 1)
print(str(num)[0])
# 2)
while num >= 10:
num //= 10
print(num)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
num = int(input("Введите число: "))
# 1)
print(str(num)[0])
# 2)
while num >= 10:
num //= 10
print(num)