using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Star
{
class Program
{
void print_star()
{
int i, n = 8, j;
char a = 'a';
for (i = 0; i <= n; i++)
{
for (j = i; j < n; j++)
{
Console.Write(" ");
}
for (j = 1; j <= 2 * i - 1; j++)
{
if (i % 2 == 0)
{
Thread.Sleep(1000);
Console.Write("*");
}
else
{
Console.Write(a);
}
}
Console.Write("\n");
if (i % 2 == 0)
{
}
else
{
a++;
}
}
}
static void Main(string[] args)
{
Program p = new Program();
Thread t = new Thread(new ThreadStart(p.print_star));
t.Start();
Console.WriteLine("");
// p.print_star();
Console.ReadKey();
}
}
}
// This Program is Created By Jaspreet Singh
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Star
{
class Program
{
void print_star()
{
int i, n = 8, j;
char a = 'a';
for (i = 0; i <= n; i++)
{
for (j = i; j < n; j++)
{
Console.Write(" ");
}
for (j = 1; j <= 2 * i - 1; j++)
{
if (i % 2 == 0)
{
Thread.Sleep(1000);
Console.Write("*");
}
else
{
Console.Write(a);
}
}
Console.Write("\n");
if (i % 2 == 0)
{
}
else
{
a++;
}
}
}
static void Main(string[] args)
{
Program p = new Program();
Thread t = new Thread(new ThreadStart(p.print_star));
t.Start();
Console.WriteLine("");
// p.print_star();
Console.ReadKey();
}
}
}
// This Program is Created By Jaspreet Singh
0 comments:
Post a Comment