Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- string word = Console.ReadLine();
- char[] arr = new char[26];
- for (int i = 0; i < arr.Length; i++)
- {
- arr[i] = (char)(97 + i);
- }
- for (int i = 0; i < word.Length; i++)
- {
- Console.WriteLine(word[i] + " -> " + Array.IndexOf(arr, word[i]));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement