using System; using System.Xml.Linq; namespace ConsoleApp1 { internal class Program { public static void Main(string[] args) { Console.WriteLine("Enter name: "); string userInput = Console.ReadLine(); Upper(userInput); } //Conver to upper case() public static void Upper(string userString) { string myNameUpperCase = String.Format("Your name in Upper case {0}", userString.ToUpper()); Console.WriteLine(myNameUpperCase); } } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter