Advertisement
deyanmalinov

05. Print Part Of ASCII Table

Feb 13th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.*;
  4.  
  5. public class Main {
  6.         public static void main(String[] args) {
  7.             Scanner scan = new Scanner(System.in);
  8.             int begin = Integer.parseInt(scan.nextLine());
  9.             int end = Integer.parseInt(scan.nextLine());
  10.  
  11.             for (int i = begin; i <=end ; i++) {
  12.                 char znak = (char)i;
  13.                 System.out.print(znak+ " ");
  14.             }
  15.         }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement