I am trying to learn C#, and have a basic question: I try to read two values from the user, and it doesn't work. Here is my code in C#:
        int a = 0;
        int n = 0;
        int s = 0;
        Console.WriteLine("Please enter the basic value");
        a = Console.Read();
        Console.WriteLine("Please enter the power");
        n = Console.Read();
        // Console.ReadKey();
        do
        {
            s = s * a;
            n--;
        }
        while (n > 1);
        Console.WriteLine("the solution is:" + s);
        Console.ReadKey();
