using System.Collections.Generic;
using static System.Console;
public static void Main()
double[] arr2={0,9,-1,11,8,-3,7};
WriteLine($"length of the array is {len(arr1)}");
for(var coun1=0;coun1<4;coun1++){
WriteLine($"element {coun1}: {GetValue(arr1,coun1)}");
WriteLine($"index of the element {i} is {GetIndex(arr1,i)}");
WriteLine($"Smallest element is {min(arr2)}\nbiggest element is {max(arr2)}");
public static int len(Array arr){
public static object GetValue(Array arr,int index){
public static int GetIndex(Array arr,object elem){
public static object min(Array arr){
var Min=(double)GetValue(arr,0);
public static object max(Array arr){
var Max=(double)GetValue(arr,0);