Advertisement
fbinnzhivko

09.00 Index of letters

May 30th, 2016
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4.     static void Main()
  5.     {
  6.         char[] input = Console.ReadLine().ToCharArray();
  7.  
  8.         for (int i = 0; i < input.Length; i++)
  9.         {
  10.             Console.WriteLine("{0} -> {1}", input[i], input[i] - 'a');
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement