Find Minimum Number In Array
Using C++ Find minimum number in array
========================================================================
#include<iostream>
using namespace std;
main()
{
int arr[10],i,minimum=0;
cout<<"Enter Values In Array\n";
for(i=0;i<10;i++)
{
cin>>arr[i];
}
minimum=arr[0];
for(i=1;i<10;i++)
{
if(minimum>arr[i])
minimum=arr[i];
}
cout<<"Minimum value of Array"<<minimum;
}
=======================================================================
Code By: Kabeer Hussain
0 comments:
Post a Comment