Advertisement
Kancho

Print_Symbols_From_ASCII_Table

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