public static void main(string[] args)
output("Enter a positive integer: " + "\n");
' .NET can only read single characters or entire lines from the console.
' The following functions are designed to help input specific data types.
private static double inputValue()
while (!double.TryParse(Console.ReadLine(), out result));
private static string inputText()
return Console.ReadLine()
private static output(string text)