Advertisement
g-stoyanov

ExamC# 29.12.2012 Task1

Dec 29th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. class Task1
  4. {
  5.     static void Main()
  6.     {
  7.         char[] input = Console.ReadLine().ToCharArray();
  8.         int intTemp = 0;
  9.         string temp = "";
  10.         for (int i = 0; i < 3; i++)
  11.         {
  12.             temp = "";
  13.             temp = temp + input[input.Length - 1];
  14.             for (int x = 0; x < input.Length - 1; x++)
  15.             {
  16.                 temp = temp + input[x];
  17.             }
  18.             intTemp = int.Parse(temp);
  19.             input = (intTemp.ToString()).ToCharArray();
  20.         }
  21.         Console.WriteLine(intTemp);
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement