Does anyone have a simple example on how to use the Console.Key() function?
I’m just trying to read in 5 numbers.
Something like this.
String Key ConsoleKeyInfo( );
Int Number =0;
For (int I =0; I<=5; I++)
{ Key = Console.Key();
Number = Number & Convert.ToInt32 (Key);
}
--
thank You
I’m just trying to read in 5 numbers.
Something like this.
String Key ConsoleKeyInfo( );
Int Number =0;
For (int I =0; I<=5; I++)
{ Key = Console.Key();
Number = Number & Convert.ToInt32 (Key);
}
--
thank You
Comment