public static void Main() { PingPong pingPong = new PingPong(); Console.WriteLine("Please enter a +ve Integer number: "); string enteredNumber = Console.ReadLine(); int enteredIntNum = int.Parse(enteredNumber); pingPong.DoEverything(enteredIntNum); }
public static void Main() { Console.WriteLine("Enter a number for Ping Pong"); Console.Write("Enter : "); int length = int.Parse(Console.ReadLine()); for (int i = 1; i <= length; i++) { Console.WriteLine(PingPong.Count(i)); } }
public static void Main() { PingPong game = new PingPong(); game.AskUserInput(); int userInput = int.Parse(Console.ReadLine()); foreach (string item in game.PrintUserInput(userInput)) { Console.WriteLine(item); } }