Powered By Blogger

21 February 2017

PROGRAM TO FIND OUT MIN NUMBER FROM 10 NUMBERS

INPUT=


#include<iostream>
using namespace std;
int main()
{
       int i,a[20],min;
       min = a[0];
       cout<<"Enter 10 numbers =";
       for (i=0;i<10;i++)
       {
              cout<<"The min is = "<<a[i];
       }
       else
       {
              cout<<"The min is = "<<min;
       }
       return 0;
}

OUTPUT=


Enter 10 numbers =
3
12
13
19
0
16
34
22
57
2

The min is = 0

No comments:

Post a Comment