107
Program to print the following pattern
A
B B
C C C
D D D D
E E E E E
Algorithm
- Start
- Let i be an integer number.
- Let j be an integer number.
- Repeat step 5 to 7 until all value parsed.
- Set i = 0 and check i<4;
- Set j = 0 and check j <= i;
- Print char(65+i).
- End.
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.
JAVA
Python
C program
C# program
PHP
Next TopicProgram to Print pattern 12