using System;
namespace ConsoleApp1
{
internal class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Enter name: ");
string userStringInput = Console.ReadLine();
Console.WriteLine(TrimUpper(userStringInput));
}
//Trim & toUpper()
public static string TrimUpper(string userString) {
string trimUpper = userString.Trim().ToUpper();
return trimUpper;
}
}
}
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