Select the correct answer. What is the output of the following code? class minNumber{ static void leastNum(intarr[]){ int least=arr[0]; for(int i=1;iarr[i]) least=arr[i]; System.out.println(least); } public static void main(String args[]){ intnumArray[]={100,20,6,2}; leastNum(numArray); } } A. 100 B. 20 C. 6 D. 2



Answer :

Other Questions