can you guys help me fix the syntax & logic errors ?? please i need it asap..
//Debug6-1
// function counts down from higher number to lower number entered
// e.g., if numbers entered are 4 and 8
// output is : 8 7 6 5 4
#include<iostream>
using namespace std;
int main()
{
void countDown(int lowest,int highest);
int highest,lowest;
cout <<"I will count down from the higher number you enter to the lower one " << endl;
cout <<"Enter a number" << endl;
cin >> highest;
cout <<" Enter another number " << endl;
cin >> lowest;
if(highest<lowest);
{
lowest=highest;
highest=lowest;
}
void countDown(int high,int low );
return 0;
}
void countDown(int lowest , int highest);
{
int x;
for(x=highest; x=lowest;--x)
cout << x << "" << endl;
}