Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Task1
- {
- static void Main()
- {
- char[] input = Console.ReadLine().ToCharArray();
- int intTemp = 0;
- string temp = "";
- for (int i = 0; i < 3; i++)
- {
- temp = "";
- temp = temp + input[input.Length - 1];
- for (int x = 0; x < input.Length - 1; x++)
- {
- temp = temp + input[x];
- }
- intTemp = int.Parse(temp);
- input = (intTemp.ToString()).ToCharArray();
- }
- Console.WriteLine(intTemp);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement