Smallest no Array - Insurance Tips

A Hub of Best Guide Health Insurance Tips

Saturday, March 28, 2020

Smallest no Array

#include
using namespace std;

int main()
{
    int a[10], small;
    cout<<"Enter 10 integers:\n";
    for(int i=0; i<10 br="" i="">    {
        cin>>a[i];
    }
   
    small=a[0];
   
    for(int i=1; i<10 br="" i="">    {
        if(a[i]        {
            small=a[i];
        }
    }
    cout<<"\nSmallest no is: "<    return 0;
}

1 comment: