Ответ:
Решение на языке Python
#=================================================#
sentence = input()
words = sentence.split() # Разбиваем строку на слова
longest_word = ""
max_length = 0
for word in words:
length = len(word)
if length > max_length:
longest_word = word
max_length = length
print("Слово с наибольшей длиной:", longest_word)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Решение на языке Python
#=================================================#
sentence = input()
words = sentence.split() # Разбиваем строку на слова
longest_word = ""
max_length = 0
for word in words:
length = len(word)
if length > max_length:
longest_word = word
max_length = length
print("Слово с наибольшей длиной:", longest_word)
#=================================================#