public static void Main()
Console.WriteLine("Hello what is your name?");
string user = Console.ReadLine();
string pass = Console.ReadLine();
string[,] arrays = new string[,] { {"admin","admin2","admin3" },{"123","1234","12" } };
for(i = 0;i<arrays.GetLength(0)&& arrays[0, i] != user && arrays[1, i] != pass;i++ )
for( j = 0; j<arrays.GetLength(1) && arrays[0, j] != user && arrays[1, j] != pass; j++ )
Console.WriteLine(arrays[0, j]);
if( j==arrays.GetLength(1)-1 && j==arrays.GetLength(0)-1){
if( j<arrays.GetLength(1) && i<arrays.GetLength(0))
if(arrays[0, j] == user&& arrays[1, j] == pass){
Console.WriteLine("hi "+ user);
Console.WriteLine("Your input is not valid ");
public static bool accList(string un, string pass)
string[,] arrays = new string[,] { { },{ } };
for(int i = 0; i<arrays.GetLength(0); i++ )
for(int j = 0; j<arrays.GetLength(1); j++ )
for(int k = 0; arrays[k, k] != un&& arrays[k, 1] != pass; k++ ) {