kadyr

Untitled

May 8th, 2021
619
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int[] Task(int[] arr1, int start, int end){
  2.     int[] returnArray = new int[arr1.Length];
  3.     int counter = 0;
  4.     for(int i = 0; i<arr1.Length;i++){
  5.       if(arr1[i]<=end && arr1[i]>=start){
  6.         returnArray[counter] = arr1[i];
  7.         counter++;
  8.       }
  9.     }
  10.     return returnArray;
  11.   }
RAW Paste Data