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