Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- using System.Linq;
- namespace ReverseStrings
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- string word = Console.ReadLine();
- while (word != "end")
- {
- char[] reverseWord = word.Reverse().ToArray();
- Console.WriteLine($"{word} = {string.Join("",reverseWord)}");
- word = Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement