Skip to main content

Program to create * pattern in CPP

· One min read
Kaustubh Kulkarni
Pattern.cpp
  

/*

Program for below pattern.
$ $ $ $ $
$ $ $ $
$ $ $
$ $
$

*/


#include
using namespace std;
int main()
{
for(int i=0;i<5;i++)
{
for(int j=i;j<5;j++)
{
cout<<"$t";
}
cout< }
}