#include<stdio.h>
int main()
{
int i,j;
for(i=1; i<=5; i++)
{
for(j=5; j>=i; j--)
{
printf("%d",i);
}
printf("\n");
}
return 0;
}
#include<iostream.h>
int main()
{
for(int i=1;i<=5;i++)
{
for(int j=5;j>=i;j--)
{
cout<<i; // any character or symbol '#' etc
}
cout<<endl;
}
return 0;
}
class PatternProg
{
public static void main(String args[])
{
for(int i=1;i<=5;i++)
{
for(int j=5;j>=i;j--)
{
System.out.print(i);
}
System.out.println();
}
} //end of main
} //end of class
using System;
class PatternProg
{
public static void Main()
{
for (int i = 1; i <= 5; i++)
{
for (int j = 5; j >= i; j--)
{
Console.Write(i);
}
Console.WriteLine();
}
Console.ReadKey(true);
} //end of main
} //end of class
for x in range(1, 6):
for y in range(5, x - 1, -1):
print(x, end="")
print()