i am having trouble when i try to get user input of an array.. this is my code!!!. the problem is when i take input .. it does not store that specific value.. for exapmle if i take inout 1. it stores 48 and the while loop runs 3 time and then asks for the second input.. plz help!! following is my code!!run it and tell wats wrong..
using System;
class abc
{
static void Main()
{
int[]a=new int[5];
int b=0;
int l=1;
int I=1;
Console.WriteLine("***************Taking User Input****************");
while (l != 0)
{
Console.Write(I + ".");
a[b] = Console.Read();
l = a[b];
b++;
I++;
}
}
}