+ 15
//here is an example ::: Scanner sc=new Scanner (System.in); int n=sc.nextInt (); //no. of elements u want to enter int ary[] =new int[n]; for (int a=0;a <n;a++) ary [a]=sc.nextInt (); //assign the elements to the array
1st Jan 2018, 7:59 AM
Gaurav Agrawal
Gaurav Agrawal - avatar