โ Back to Arrays
Question 237
Does the Array Contain a Value
Does the Array Contain a Value
An int array is given. Print 'Found' if the value 7 appears anywhere in the array, otherwise print 'Not found'.
For the array {3, 7, 1, 9} the program prints:
FoundExpected Output:
Found
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.