Write a program to input sentence,print number of characters found in longest word of given sentence

Опубликовано: 23 Январь 2025
на канале: Learn Easily - By Anurag
5,391
274

This video contains detailed solution of following question which came in ICSE 2009.This question is important because it tests you problem solving skills and is also very useful to learn string concepts for string manipulation
Question:
Write a program to input a sentence and print the number of characters found in the longest word of the given sentence.
For example, if S = "india is my country" then the output would be 7