davichonov365

Untitled

Oct 5th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace _04.Numbers_in_Reversed_Order
  5. {
  6. class Program
  7. {
  8. static void Main()
  9. {
  10. string textValue = Console.ReadLine();
  11. char[] valueChars = textValue.ToCharArray();
  12. Array.Reverse(valueChars);
  13. string reversedValue = new string(valueChars);
  14. double reversedInt = double.Parse(reversedValue);
  15. Console.WriteLine(valueChars);
  16.  
  17.  
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment