- C
- C++
- Java
- C#
- Python
C
#include<stdio.h>
int main()
{
int i,j;
int n=5;
for (i=n; i>=1; i--)
{
for (j=1; j<=n; j++)
{
if (j<i)
printf("%d",j);
else
printf("%d",i);
}
printf("\n");
}
return 0;
}