12345
1234
123
12
1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pattern1
{
class Program
{
static void Main(string[] args)
{
int i, j;
for (i = 5; i >= 1; i--)
{
for (j = 1; j <= i; j++)
{
Console.Write(j);
}
Console.Write("\n");
}
Console.ReadLine();
}
}
}
No comments:
Post a Comment