Write a program that read an array & display minimum.

#include<stdio.h>
#include<conio.h>
#include<iostream.h>

void main()
{
    int n,a[100];
    clrscr();
    cout<<"How many numbers = ";
    cin>>n;

    for(int i=0;i<n;i++)
    {
       cout<<"\na"<<"["<<i+1<<"] = ";
       cin>>a[i];
    }

    int max=a[0];
    for(i=1;i<n;i++)
       if(a[i]<max)
          max=a[i];

    cout<<"\nMinimum number in Arrays element = "<<max;
    getch();

}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........