Computer Science, asked by h3lpp1zz, 2 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 Dhirajtalekar
0

Answer:

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 bjh

Similar questions