A B C D E
A B C D A
А В С А В
А В А В С
A A B C D
Write a program to display the pattern
Answers
Answered by
1
Answer:
this was answer
Explanation:
public class KboatPattern
{
public static void main(String args[]) {
for (int i = 65; i < 70; i++) {
for (int j = 65; j <= i; j++) {
if (i % 2 == 0)
System.out.print((char)(j+32));
else
System.out.print((char)j);
}
System.out.println();
}
}
Similar questions