Created
January 6, 2022 05:11
-
-
Save corespider/45950b08f31ed924f454b71656f8a6e5 to your computer and use it in GitHub Desktop.
Reverse a String using C# in .NET Core console application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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