static void Main(string[] args) { Reverse rev = new Reverse(); string num = Console.ReadLine(); string res = rev.ReverseNum(num); Console.WriteLine(res); }
static void Main(string[] args) { Reverse rev = new Reverse(); int num = 0; num = Convert.ToInt32(Console.ReadLine()); int res = rev.ReverseNum(num); Console.WriteLine(res); }
static void Main(string[] args) { Console.WriteLine("The program is reverse number. Max value contain 9 signs"); Console.WriteLine(); Console.WriteLine("Input value."); var number = Console.ReadLine(); var reverse = new Reverse(number); Console.WriteLine($"\nResult is {reverse.GetReverseNumber()}"); Console.ReadLine(); }