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