CPP All : Pattern printing loops
Concept Learning Code Sheets

Pattern – Inverted right half triangle of symbol #2464

Printing the inverted right half triangle made of same symbol as per row count given by the user.

Pattern – Upright right half triangle of symbol #2470

Printing the upright right half triangle made of same symbol as per row count given by the user.

upright triangle with user given character #2482

Printing an upright triangle filled with user given character.

Inverted triangle with user given character #2804

Printing an inverted triangle filled with user given character.

Upright right half triangle of numbers #2809

Print the right half upright pyramid of increasing numbers.

Upright right half triangle of alphabets (column-wise increasing) #2814

Print the right half upright pyramid of column wise increasing alphabets like follows –
A
A B
A B C

Upright right half triangle of alphabets (row-wise increasing) #2854

Print the right half upright pyramid of row wise increasing alphabets like follows –
A
B B
C C C
…………..

Printing the Flyod’s Triangle #2856

Printing the Flyod’s triangle of numbers which are increasing in both row and column wise fashion

Upright Hollow Triangle with given base size #3111

Printing upright hollow triangle with given base size.

Downward Hollow Triangle with given base size and left offset #3116

Printing downward hollow triangle with given base size and left offset.

Printing a diamond pattern #3124

A program that prints a diamond pattern of stars where a size unit is given in form of half of the diamond height.

Printing a damru/dumbbell pattern #3128

A program that prints a damru or dumb bell pattern of stars where a size unit is given in form of half of the damru height.

Pascal’s Triangle Printing #3173

Printing a pascal’s triangle of given number of rows.

Solved Problems

Triangular Number series using the Flyod’s triangle method #2860

Write a program to print a series of triangular numbers starting 1 using the

Write a program to print a series of triangular numbers starting 1 using the property of a flyod’s triangle where the right most number is a triangular number. Accept the number of terms to be printed from the user. The series output would be 1 3 6 10 15 ……

Code Sheets:13  Solved Problems:1
×