SHARE
TWEET

ExamC# 29.12.2012 Task1

g-stoyanov Dec 29th, 2012 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top