Computer Science, asked by h3lpp1zz, 3 months ago

Anyone knows one-dimensional array in Java
Create a program using a one-dimensional array that will group numbers in an array following the given groupings provided below:
Range Group
01-10 1
11-20 2 and so on...
There will be 10 values as interval. Your program will only terminate once the input is 0 and below and above the highest range of 100.

Sample Run:

Enter an integer number: 22
22 belongs to Group 3
Enter an integer number: 5
5 belongs to Group 1
Enter an integer number: 0
Goodbye

Answers

Answered by qismatrani33gmailcom
0

Answer:

We can reference all the elements in a one-dimension array using an indexed loop. The counter runs from 0 to the maximum array size, say n, minus one. All elements of the one-dimension array are referenced in sequence by using the loop counter as the array subscript.

Explanation:

I hope it will be helpful for you...

Attachments:
Answered by Anonymous
0

Answer:

Answer:

We can reference all the elements in a one-dimension array using an indexed loop. The counter runs from 0 to the maximum array size, say n, minus one. All elements of the one-dimension array are referenced in sequence by using the loop counter as the array subscript.

Explanation:

I hope it will be helpful for you..

Similar questions