I try to use function to find out how many negative numbers in three numbers, but I don't have any ideas. PLZ help me!
this is what I wrote:
#include <iostream>
using namespace std;
int howmanynegs (int,int,int);
int main()
{
int a,b,c;
cout << "Please enter the first number: ";
cin >> a;
cout << "Please enter the second number: ";
cin >> b;
cout << "Please enter the third number: ";
cin >> c;
howmanynegs (a,b,c);
cout << << " of these numbers is/are negative." << endl;