Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace _4.NumberInReversedOrder
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- int number = input.Length;
- int counter = 1;
- while (number !=0)
- {
- Console.Write(input[input.Length-counter]);
- number--;
- counter++;
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment