Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Index Of Letters

mdamyanova May 31st, 2016 (edited) 442 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace _09.IndexOfLetters
  4. {
  5.     public class IndexOfLetters
  6.     {
  7.         public static void Main()
  8.         {
  9.             string word = Console.ReadLine();
  10.  
  11.             foreach (char letter in word)
  12.             {
  13.                 Console.WriteLine($"{letter} -> {letter - 'a'}");
  14.             }
  15.         }
  16.     }
  17. }
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