static void Main(string[] args) { int n, m, c, a; n = Convert.ToInt32(Console.WriteLine()); a = n; { m = n % 10; a = n % 10; } while(n != 0) { c--; m = n % 10; n = n / 10; a = a + m * Math.Pow(10,c); Console.ReadKey(); } }
Console.WriteLine
Console.ReadLine
n = Convert.ToInt32(Console.ReadLine());
a = a + m * Math.Pow(10,c);
Quote:Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are you missing a cast?)
double a;
int n, m, c = 0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)