Program to print stars (steric) in a pattern in C++ (C plus plus)

Program to print stars (steric) in a pattern in C++ (C Plus Plus)

In this latest tutorial, we will try to learn the program to print stars (steric) in a pattern in C++ (C Plus Plus).
#include <iostream>
using namespace std;
int main()
{
cout<<"*"<<endl<<"**"<<endl<<"***"<<endl<<"****"<<endl;
}

 Output:

Program to print stars (steric) in a pattern in C++ (C plus plus)
Program to print stars (steric) in a pattern in C++ (C plus plus)
Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.