Answer :

ijeggs

Answer:

import java.util.Arrays;

public class num2 {

   public static void main(String[] args) {

       int []intArray = new int[100];

       for(int i=0; i<intArray.length; i++){

       intArray[i] = i+1;

       }

       System.out.println(Arrays.toString(intArray));

   }

}

Explanation:

Firstly create an array of size 100 with this statement

int []intArray = new int[100];

Using a for loop add elements into the array starting at i=0+1 (to acheive an asceending order) since i will run from 0-99.

see the attached code and output

${teks-lihat-gambar} ijeggs

Other Questions