Question: in java Write a program that declares and initializes an array with the following numbers: ( 1 0 , 8 9 , 5 0 ,
in java
Write a program that declares and initializes an array with the following numbers: Then ask the user for a number and check if the array contains that number. If it does, return a message to the user print to screen that says Number found at position x where x is the location of that number in the array. If the number is not found, print a message to the screen that says Number not found in array
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
