
to write a program using a function ti initialize a character 'A' and print the following pattern of characters upto six lines
A A B A B C A B C D A B C D E A B C D E F

public class Pattern{
public static void main(String []args){
for(int i=65;i<=70;i++){
for(int j=65;j<=i;j++){
System.out.print((char)j);
}
System.out.println();
}
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.