Largest of n numbers

Program to print largest of n numbers :

ALGORITHM:

    1. Enter the number of integers, n
    2. Input all the in the array, say, a[100]
    3. SET max=a[0]
    4. Compare each element of array with max and set value of max if larger
      PRINT max

C SOURCE CODE:

Leave a Reply

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