write a program to take two integers arguments in a method void small( to print the smallest integer.
Answers
Answered by
2
Answer:
Algorithm
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