What is the formula to fetch the smallest and biggest number in an integer type array?

What us the formula to fetch the smallest and biggest number in an integer type array ? Suppose the array is {7, 5, 2, 4, 3, 9} .

Hi @Gaurab

Check below post for your reference

Hope this helps

Thanks

Hi,

Hope the following helps you.

arr = {7, 5, 2, 4, 3, 9} 
max = arr.Max
min = arr.Min

Regards,

2 Likes

Yes. Thank you.

Thank you.

Can you tell me if I want to see the index of the smallest and biggest number in an int array, what will the formula ?

Hi @Gaurab

Check below

Hope this helps

Thanks

1 Like

Thanks