Unfortunately, this just gives me the largest value entered... And it doesn't seem to change whether I put in an or statement or
the sign...
Code:
#include <iostream>#include <iomanip>
using namespace std;
int main()
{
int MinNum,
Counter,
small;
cout << "How many numbers would you like to enter? ";
cin >> Counter;
cout << endl;
for (int num = 1; num < Counter; num++)
{
cout << "Enter a number: ";
cin >> small;
if ((small < MinNum) && (!(small > MinNum)))
MinNum = small;
}
cout << endl;
cout << "Here is the lowest number you entered: " << MinNum << endl;
cout << endl;
system("pause");
return (0);
}