Please help me get the minimum in the following problem. i get everything else but the min. take a look at it.

//**************************************************

// Description : This program asks a user for five real numbers, then outputs

// the number of data entries entered, the total of the numbers

// entered, the mean average of the numbers entered, the minimum

// and maximum value entered. it will also format the output to

// one decimal place.

//**************************************************

#include <iostream>

#include <stdlib.h>

using namespace std;

int main(void)

{

double num, sum = 0, avg, max, min;

int count = 0; // loop counter variable

while (count < 5)

{

cout <<"Enter number " << count ++ << ":";

cin >> num;

sum = sum + num;

if (count == 0)

{

max = num;

min = num;

}

if (num > max)

{

max = num;

}

if (num < min)

{

min = num;

}

}

cout <<"The number of values entered is " << count << endl;

cout <<"The sum of values entered is " << sum << endl;

avg = sum / count;

cout <<"The average of values entered is " << avg << endl;

cout <<"The maximum value entered is " << max << endl;

cout <<"The minimum of value entered is " << min << endl;

system("PAUSE");

return 0;

}