Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- class Rotation
- {
- static void Main()
- {
- string input = Console.ReadLine();
- for (int i = 0; i < 3; i++)
- {
- input = (input.Last() +
- input.Substring(0, input.Length - 1))
- .TrimStart('0');
- }
- Console.WriteLine(input);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement