Preview:
using System;

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) {
            Console.WriteLine($"Converted to upper: {userString.ToUpper()}");
        }
    }
}
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