Java program to print the following pattern on the consoleA To accomplish this task, we need to use two loops, the first loop is responsible for printing the line breaks whereas the second loop is responsible for printing the alphabet. Algorithm:
Program:Output: A B B C C C D D D D E E E E E
Next TopicJava Programs
|