Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. class Rotation
  4. {
  5.     static void Main()
  6.     {
  7.         string input = Console.ReadLine();
  8.         for (int i = 0; i < 3; i++)
  9.         {
  10.             input = (input.Last() +
  11.         input.Substring(0, input.Length - 1))
  12.         .TrimStart('0');
  13.         }
  14.  
  15.         Console.WriteLine(input);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement