private static void ShowResult(A02PBallGenerator set) { Clear(); WriteLine("\n Powerball Numbers:"); WriteLine(" -----------------------------------------------------------------"); WriteLine(set); Write("\n Press 'Y' to continue, 'N' to end: "); }
private static void Main() { char key; do { var set = new A02PBallGenerator(); do { ShowResult(set); }while ((key = char.ToUpper(ReadKey().KeyChar)) != 'Y' && key != 'N'); }while (key == 'Y'); }