Question: Categories Create a 2 - dimensional array of length 1 0 0 and fill the first row with the numbers 1 - 1 0 0
Categories
Create a dimensional array of length and fill the first row with the numbers Create a method that takes in an int as a formal parameter and returns the appropriate int using the code
below.
Number is prime
Number is divisible by but not
Number is divisible by but not
Number is divisible by both and
Number is none of the above example is not prime, even, or divisible by
Now use this method to fill the second row of the array.
Lastly, print the array in a vertical format with row in the first column and row next to it The output should look something like this.
table
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
