5
4 5
3 4 5
2 3 4 5
1 2 3 4 5
class Program
{
static void Main(string[] args)
{
int i, j;
for (i = 5; i >= 1; i--)
{
for (j = i; j <= 5; j++)
{
Console.Write(j);
}
Console.Write("\n");
}
Console.ReadLine();
}
}
4 5
3 4 5
2 3 4 5
1 2 3 4 5
class Program
{
static void Main(string[] args)
{
int i, j;
for (i = 5; i >= 1; i--)
{
for (j = i; j <= 5; j++)
{
Console.Write(j);
}
Console.Write("\n");
}
Console.ReadLine();
}
}
No comments:
Post a Comment