Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package softuni;
- import java.util.Scanner;
- public class SoftUni {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int sum = 0;
- System.out.print("Enter the first index of the ASCII table: ");
- int index1 = Integer.parseInt(sc.nextLine());
- System.out.print("Enter the last index of the ASCII table: ");
- int index2 = Integer.parseInt(sc.nextLine());
- for(int i = index1;i<= index2;i++){
- char symbol = (char)(i);
- System.err.print(symbol + " ");
- }
- }
- }
Add Comment
Please, Sign In to add comment