In: Computer Science
Program:
#include<iostream>
using namespace std;
int main()
{
int n, min=32767000;
char choice;
do
{
cout<<"Enter number : ";
cin>>n;
if(n<min)
min=n;
cout<<"Do you want to
Continue(y/n)? ";
cin>>choice;
}while(choice=='y' || choice=='Y');
cout<<"\nMinimum Number :"<<min;
return 0;
}
Note: Refer the screenshots below for further clarification.
Output: