#include<iostream>
using namespace std;
int main() {
	cout << "Minimum of n Numbers \n";
	cout << "To exit, n < 1 \n\n";
	while (true) {
		int n;
		cout << "n = ";
		cin >> n;
		if (n<1) {
			cout << "The program is termaxated. Bye!";
			break;
		} else {
			double min;
			cout << "Number" << 1 << " = ";
			cin >> min;
			for (int i=1; i<n; i++) {
				double x;
				cout << "Number" << i+1 << " = ";
				cin >> x;
				if (x<min) {
					min = x;
				}
			}
			cout << "Minimum = " << min << endl << endl;
		}
	}
	return 0;	
}
