Write a program in Java to display the following pattern:
AABABCABCDABCDE
27 Likes
public class KboatPattern { public static void main(String args[]) { for (char i = 'A'; i <= 'E'; i++) { for (char j = 'A'; j <= i; j++) { System.out.print(j); } System.out.println(); } } }
Answered By
11 Likes