Skip to main content

Program for Number Pattern

· One min read
Kaustubh Kulkarni
Pattern.cpp
/* Program for below pattern 


1
2 2
3 3 3
4 4 4 4
5 5 5 5 5




*/


#include<iostream>
using namespace std;
int main()
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
{
cout<<i<<"t";
}
cout<<endl;
}
}