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