Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01ReverseStrings
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- string reversed = null;
- while (input != "end")
- {
- input = Console.ReadLine();
- for (int i = input.Length - 1; i >= 0; i--)
- {
- reversed += input[i];
- }
- }
- Console.WriteLine($"{input} = {reversed}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement