Write a program in Java to display the following pattern:
AABABCABCDABCDE
35 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
12 Likes
acegikmoqs
a ce gik moqs
Write a program in Java to find the sum of the given series:
S = 1! + 2! + 3! + …. + n!