Write a JAVA program to print the following message

package pattern;

public class Pattern {

    public static void main(String[] args) {

        System.out.println("C");

        System.out.println("O M");

        System.out.println("P U T");

        System.out.println("E R I S");

        System.out.println("A W O R L");

        System.out.println("D O F S");

        System.out.println("C I E");

        System.out.println("N C");

        System.out.println("E");

    }

    

}

OUTPUT
C
O M
P U T
E R I S
A W O R L
D O F S
C I E
N C
E

No comments:

Post a Comment