Again I don't know if I am calling it correctly.
Can someone help me please!
Thank you!
#include <iostream>
using namespace std;
int getNumAccidents ();
void findLowest (int,int,int,int,int);
int main()
{
int acc1, acc2, acc3, acc4, acc5;
cout << "Enter The Number Of Automobile Accidents Reported A Year \n";
cout << "By Region And I Will Show you The Region With The Fewest Accidents\n";
cout << "North\n";
cin >> acc1;
cout << "South\n";
cin >> acc2;
cout << "East\n";
cin >> acc3;
cout << "West\n";
cin >> acc4;
cout << "Central\n";
cin >> acc5;
getNumAccidents ();
{
int acc1,acc2,acc3,acc4,acc5;
if (acc1, acc2, acc3, acc4, acc5 < 0)
cout << "Accidents Must Be Equal or Greater Than 0\n";
}
cout<< " The Region With The Least Accidents Is: " << endl;
findLowest(acc1, acc2, acc3, acc4, acc5);
return 0;
}
int acc1,acc2,acc3,acc4,acc5;
void findLowest(int,int,int,int,int)
{
if (acc1 < acc2,acc3,acc4,acc5)
{
cout << "North Is The Region With The Least Accidents With" << acc1 << endl;
}
if (acc2 < acc1,acc3,acc4,acc5)
{
cout << "South Is The Region With The Least Accidents With" << acc2 << endl;
}
if (acc3 < acc1,acc2,acc4,acc5)
{
cout << "East Is The Region With The Least Accidents With" << acc3 << endl;
}
if (acc4 < acc1,acc2,acc3,acc5)
{
cout << "West Is The Region With The Least Accidents With" << acc4 << endl;
}
if (acc5 < acc1,acc2,acc3,acc4)
{
cout << "Central Is The Region With The Least Accidents With" << acc5 << endl;
}
else
{
cout << "There Are More Than One Region With The Same Ammount Of Accidents" << endl;
}
}