Computer Science, asked by ridhimasarawgi1, 7 months ago

write a java program to accept 10 elements in an array and print the minimum number in the given array​

Answers

Answered by Subham200813
1

Answer:

STEP 1: START

STEP 2: INITIALIZE arr[] = {25, 11, 7, 75, 56}

STEP 3: min = arr[0]

STEP 4: REPEAT STEP 5 for(i=0; i< arr.length; i++)

STEP 5: if(arr[i]<min)

min=arr[i]

STEP 6: PRINT "Smallest element in given array:"

STEP 7: PRINT min

STEP 8: END

Similar questions