This is what I ended up with after an hour of trying to get it to tell me how many negatives i've put it, lol... its kinda funny. Help!Code:#include <iostream>
int main()
{
std::cout <<"Enter numbers: "<<std::endl;
int value;
std::cin >> value;
std::cin.ignore();
std::cin.get();
while (std::cin >> value)
if (value < 0)
{
value < 0;
std::cout <<"There are " << value << "negative numbers" << std::endl;
std::cin.ignore();
std::cin.get();
}
else
{
value >= 0;
std::cout << "This is positive" << std::endl;
std::cin.ignore();
std::cin.get();
}
value = 0;
std::cin.ignore();
return 0;
}