Advertisement
Guest User

Reverse String

a guest
May 12th, 2015
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. class ReverseString
  5. {
  6.     static void Main()
  7.     {
  8.         // input
  9.         Console.WriteLine("Please, enter a string: ");
  10.         string input = Console.ReadLine();
  11.  
  12.         // reversing and printing
  13.         Console.WriteLine(string.Join("", input.Reverse()));
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement