YavorGrancharov

Index_of_Letters

Jan 4th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Index_of_Letters {
  4.     public static void main(String[] args) {
  5.         Scanner console =  new Scanner(System.in);
  6.  
  7.         String input = console.nextLine();
  8.         char[] ch = input.toCharArray();
  9.  
  10.         for (int i = 0; i < ch.length; i++) {
  11.             System.out.println(ch[i] + " -> " + (ch[i] - 97));
  12.         }
  13.     }
  14. }
Add Comment
Please, Sign In to add comment