My Application Exits when i parse a string to int.. I can't solve the problem as I am new to C# in-fact I am new to Programming, Here is my code so far:
public string Reverse(string str)
{
int num = int.Parse(str);
int reverse = 0;
while(num > 0)
{
reverse *= 10;
reverse += num % 10;
num /= 10;
}
return (reverse.ToString());
}
I don't want it to quit the Application