Where is the wrong??? Why does not this program work??
#include <iostream>
using namespace std;
// Function prototypes.
int resverseDigit (int);
int main()
{
int num;
// Test function resverseDigit(num).
cout << "Enter the number: "
<< endl;
cin >>num;
return 0;
} // End of main
// Function Definitions
int resverseDigit (int num)
// Returns the number with it digit reverse
{
int digit; // local verable
while (num != 0)
{
digit= num%=10;
num/=10;
}
return digit;
}
thanx,
buy