숫자 배열 Numbers = { 0, 3, 10, 15 } 를 담아놓았습니다.
궁금한 부분은 0을 제외한 두번째로 작은 수 3을 뽑아내는 일입니다.
작은 수를 뽑을 때에 0을 제외하기 위해서
if 문에 Numbers(index) < min and not Numbers.Equals(0)
이라는 조건을 달아 놓았는데, 이것이 옳지 않은 것 같습니다. 이를 도와주세요!
i made int32 array.
i wanna select smallest number but i wanna ignore 0.
so, the second smallest number is what i wanna select.
so i made if condition, but that doesn’t work.
Numbers(index) < min and not Numbers.Equals(0)
please help me !
max-min.xaml (10.6 KB)