I can't get this while loop to keep looping and not do a fast loop.
The full code is downloadable
while (num == 0) {
cout << "Type in two values:\n";
cin >> num;
num1 += num;
cin >> num;
num2 += num;
cout << "Which measurment unit do you want to use cm/m/in/ft?";
cin >> un;
cout << "\nValue 1: "<<num1;
cout << "\nValue 2: " << num2 <<"\n";
if (num1 > num2)
{
cout << "\nThe largest so far: " << num1;
cout << "\nThe smallest so far: " << num2;
}
else if (num1 < num2) {
cout << "\nThe largest so far: " << num2;
cout << "\nThe smallest so far: " << num1;
}
cout << "\n";
num = 0;
}