108
Program to show a triangle of numbers pattern
Algorithm
- Start
- Let i be an integer number.
- Let j be an integer number.
- Let size be an integer number and initialize by 6.
- Repeat step 8 to 16 until all value parsed.
- Set i = 0 and check I <= size+1;
- Set j = size and check j > 1;
- Print space.
- Set k = 1 and check k < 2*i-1;
- Print “*”.
- End
JAVA program
Python
C program
C# program
PHP program
Next TopicProgram to Print pattern 1