Skip to content

Instantly share code, notes, and snippets.

@corespider
Created January 6, 2022 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corespider/45950b08f31ed924f454b71656f8a6e5 to your computer and use it in GitHub Desktop.
Save corespider/45950b08f31ed924f454b71656f8a6e5 to your computer and use it in GitHub Desktop.
Reverse a String using C# in .NET Core console application
internal class Program
{
static void Main(string[] args)
{
// Type your text and press enter
Console.WriteLine("Enter a string that you want to Reverse:");
// Create a string variable and get user input from the keyboard and store it in the variable
string reverse = Console.ReadLine();
// Print the value of the variable of Reverse function call, which will display the input value
Console.WriteLine("Reverse string is: " + Common.ReverseString(reverse));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment