Write a program to print the following pattern .
A
B C
D E F
G H I J
K L M N O
Answers
Answered by
1
Answer:
Hope this would help you
Explanation:
class prog
{
public static void main(String args[])
{
char k='A';
for(int i=1; i‹=5;i++)
{
for(int j=1;j‹=i; j++)
System.out.print(k++);
System.out.println();
}
}
}
Similar questions