C++ Program To Print Half Pyramid Alternative Using ( * ) Star And Alphabet
In this tutorial, we will be learning about printing the half pyramid using the alternative * and an alphabet, let us say it will be "A" for instance.
The basic approach behind making this pattern will have the count that if the count value is odd it will print "*" and otherwise "A".There will be two loops one inside another to make the half pyramid and then to implement the required pattern we will apply the conditions within the inside loop.
C++ Program To Print Half Pyramid Alternative
using namespace std;
cout<<"Enter the Of Row\n";
Enter the No Of Row
This tutorial is mainly based on how we can make any shape using two different character values having different values in the positions for corresponding rows.