tanya_zheleva

09

Jan 31st, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace ExamPreparation
  5. {
  6.     class Startup
  7.     {
  8.         static void Main()
  9.         {
  10.             string word = Console.ReadLine();
  11.  
  12.             for (int i = 0; i < word.Length; i++)
  13.             {
  14.                 Console.WriteLine($"{word[i]} -> {word[i] - 97}");
  15.             }
  16.         }
  17.     }
  18. }
Add Comment
Please, Sign In to add comment