Program www_fcode_cn Implicit none Integer :: a = 1 , loca(1) = 0 Integer :: b(5) = (/5,3,4,1,2/) loca = minloc( b , mask=(b==a) ) write(*,*) loca End Program www_fcode_cn