Arrange Numbers In Array

Опубликовано: 18 Октябрь 2024
на канале: LIFE CODING WITH JAVA
1,493
22

LIFE CODING WITH JAVA

Arrange Numbers In Array
Send Feedback
You have been given an empty array(ARR) and its size N. The only input taken from the user will be N and you need not worry about the array.
Your task is to populate the array using the integer values in the range 1 to N(both inclusive) in the order - 1,3,5,.......,6,4,2.

Sample Input 1 :
1
6
Sample Output 1 :
1 3 5 6 4 2

I try to solve very easy concept So please watch this video .
All java code with easy trick.
By "LIFE CODING WITH JAVA". all program free no any cost So please like ,subscribe ,share and comment.
If you any doubt related to any video then comment me. As soon as I will help you .
my contact number: 6206472735