Advertisement
YavorGrancharov

Index_of_Letters

Oct 13th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Index_of_Letters
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string input = Console.ReadLine().ToLower();
  10.             char[] ch = string.Join(string.Empty, input).ToCharArray();
  11.  
  12.             for (int i = 0; i < ch.Length; i++)
  13.             {
  14.                 Console.WriteLine("{0} -> {1}",ch[i],ch[i] - 97);
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement