int N=sc.nextInt(); int pos=sc.nextInt(); int A[]=new int[N]; if(pos==i) { A[i]=0; }
int indexToRemove = 42; int[] B = new int[A.length - 1]; int BIndex = 0; for (int index = 0; index < A.length; index++) { if (index != indexToRemove) { B[BIndex] = A[index]; BIndex++; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)