Kotlinlearncs.online LogoJava
Return to List

Solve: Array has Seven-Hundreds

Created By: Justin Maier
/ Version: 2024.7.0

Given an int array named nums, determine if it contains any values between 700 and 799, inclusive. If it does, print "Found".

The phrase "Found" should only be printed once, even if multiple elements in the array are in the seven-hundreds.

Additionally, after searching the array you should print "Done", regardless if an element in the seven-hundreds was found or not.

Related Lessons

Stuck? You may find these lessons helpful: