Slip 1 - A) Write a ‘java’ program to display characters from ‘A’ to ‘Z’.

Solution :

class Slip_1_1_A{
    public static void main(String[] args){
        for(int i=65;i<=90;i++){
            System.out.println(Character.toString((char)i));
        }
    }
}

Output :

Output_img



Post a Comment

0 Comments