it wont go into the functions and do the steps . I ran it i enter the number and it doesnt do ne thing HELP PLEASE! its C++
#include
void pos (int num);
void neg (int num);
void zero (int num);
int main(void)
{
int n;
int num;
cout << "Enter a number Negative, Positve, or Zero.";
cout << '\n';
cin >> num;
if (num > 0)
{
void pos(int num);
}
else if (num < 0)
{
void neg(int num);
}
else
{
void zero(int num);
}
cin >> n;
}
void pos(int num)
{
cout << "Your Number Is Postive ";
cout << num << " .";
}
void neg(int num)
{
cout << "Your Number Is Negative ";
cout << num << " .";
}
void zero(int num)
{
cout << "Yor Number Is ";
cout << num << " ,therefore it's neither Negative Nor Postive.";
}
2006-11-27
09:26:07
·
6 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design