Question: Write a program to find the index at which there is a match: Use the following array: int size[] = {4, 10, 15, 20);
Write a program to find the index at which there is a match: Use the following array: int size[] = {4, 10, 15, 20); Have the user enter the integer to match from the keyboard. If the size is in the array, print its index. Otherwise, print not found" Examples: If user enters 15, the program should print 2 If the user enters 25, the program should print not found
Step by Step Solution
There are 3 Steps involved in it
Answer Heres a Java program to achieve this import javautilScanner ... View full answer
Get step-by-step solutions from verified subject matter experts
