Create Pyramid and Pattern. C++

Create Pyramid and Pattern. C++



Program to print half pyramid using *
C++ example code

C++

  Output result
Enter number of rows: 5
*
* *
* * *
* * * *
* * * * *
Program to print half pyramid a using numbers
C++ example code

C++

  Output result
Enter number of rows: 5
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Program to print half pyramid using alphabets

A B B C C C D D D D E E E E E

C++ example code

C++

Inverted half pyramid using *
C++ example code

C++

  Output result
Enter number of rows:  5 
* * * * *
* * * *
* * * 
* *
*
Inverted half pyramid using numbers
C++ example code

C++

  Output result
Enter number of rows:  5
1 2 3 4 5
1 2 3 4 
1 2 3
1 2
1


.dll file is missing? Download for Windows 7, 8, 10 - Fix .dll file Missing Error on Windows | dll-box.com

BeeCoder.ORG

open source code and examples

We have been online since 2021 and 1 millions of people around the globe have visited our website since then

More visitors every month