static void TypeText(string text){ foreach (Char c in text) { Console.Write(c); Thread.Sleep(100); // Adjust the sleep duration to change the speed }}static bool MainMenu(){ Console.Clear(); TypeText("Testing Testing Testing\n");
using System;class Program{ static void Main(string[] args) { bool showMenu = true; while (showMenu) { showMenu = MainMenu(); } } static bool MainMenu() { Console.Clear(); Console.WriteLine("Testing Testing Testing"); Console.WriteLine("1) Option 1"); Console.WriteLine("2) Option 2"); Console.WriteLine("3) Exit"); Console.Write("\r\nSelect an option: "); switch (Console.ReadLine()) { case "1": Console.WriteLine("You selected Option 1"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); return true; case "2": Console.WriteLine("You selected Option 2"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); return true; case "3": return false; default: return true; } }}