Computer Science, asked by BrainlyProgrammer, 3 months ago

Newest Challenge for Programers !!

Difficulty Level:- Very Hard.

Q) WAP in JAVA to print the following pattern:-

A B C D C B A
A B C Z C B A
A B Y X W B A
A V U T S R A
B C Q P O B C
D E F N D E F
G H I J H I J
_
HINT:-
• Divide this square pattern into five smaller pattern
• Out of five, four patterns are in the corner and remaining 1 pattern in the centre.
_
Rule:-
• Answerers must give Quality answers (with V.D. and Explanation of their program)
_​

Answers

Answered by sugarplum15
0

Answer:

public static void main()

{

int i,j;

for(i=65;i<=69;++)

{

for(j=65;j<=i;j++)

System.out.print((char)i);

System.out.println();

}

}

}

Similar questions