Smallest of n numbers

Program to print the smallest of n numbers :

ALGORITHM:

    • Enter the number of integers, n
    • Input all the in the array, say, a[100]
    • SET min=a[0]
    • Compare each element of array with min and set value of min if smaller
      PRINT min

C SOURCE CODE:

Leave a Reply

Your email address will not be published. Required fields are marked *