|
C# Number Pattern (16) |
/* C# program to print the following pattern
13579
3579
579
79
9 */
namespace Patterns
{
class Program
{
static void Main(string[] args)
{
int i, j;
for (i = 1; i <= 9; i += 2)
{
for (j = i; j <= 9; j += 2)
{
Console.Write(j);
}
Console.WriteLine();
}
}
}
}
No comments:
Post a Comment