How to print largest even number in given string?

String: NodeJs is one of the best technology

NodeJs is one of the best technology
6 2 3 2 3 4 10

From above, how to print technology which largest even number.

How to print the largest even number?

Please supply details of your attempts to solve the problem…

It looks like you want to print the word with the largest number of letters, not print the number.

Computers arent capable of storing the largest even number because such a thing does not exist. (The set of even numbers is an infinite set.)

Humor aside, this is quite clearly a homework problem, so as John politely said, show us your efforts to solve it and we may be able to give you advice; we won’t answer the problem for you.

1 Like