using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SwitchStatmnt
{
class Program
{
static void Main(string[] args)
{
for (int i= 1;i <= 10; i++)
{
for (int j = 1; j<=i; j++)
{
Console.Write("*");
}
Console.WriteLine("");
}
for (int i = 1; i <= 10; i++)
{
for (int j = i; j <= 10; j++)
{
Console.Write("*");
}
Console.WriteLine("");
}
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SwitchStatmnt
{
class Program
{
static void Main(string[] args)
{
for (int i= 1;i <= 10; i++)
{
for (int j = 1; j<=i; j++)
{
Console.Write("*");
}
Console.WriteLine("");
}
for (int i = 1; i <= 10; i++)
{
for (int j = i; j <= 10; j++)
{
Console.Write("*");
}
Console.WriteLine("");
}
Console.ReadKey();
}
}
}
0 comments:
Post a Comment