Please improve my code so that it can find the minimum value correctly that enter by user :    

>Eevery part of the code already okay only at the part find the minimumm value part. What condition have to write in order to find the minimum number enter by user and exclude the zero as minimum number?Any help would be appreciate thx

    #include<iostream>//header
    #include <string>
    using namespace std;
    int main() {
	int n , sentinel = 0, max = 0, min, count = 0, sum = 0;
	double avg;
	cout << "Enter a series of number terminated by 0:" << endl;//prompt user to input a series of number
	
	do {
		cin >> n;//read the input
		for (int i = 0; i < n; i++) {
			if (n>max)
				max = n;
			}
		for (int i = 0; i < n; i++) {
			if (n<min)
				min = n;
		}
		sum = sum + n;
		count++;
		
		

	} while (n!= sentinel);
	count--;
	avg = sum / count;

	cout << "You have enter " << count << " integers" << endl;//display how may input user enter
	cout << "Average is " << avg << endl;//display average
	cout << "Max is " << max << endl;//display maximum number
	cout << "Min is " << min << endl;//display minimum number
		system("pause");
		return 0;
	
    }




