class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 32; i++)
{
for (int j = 1; j <= 26; j++)
{
if (i == 1)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 2)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 3)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 4)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 5)
{
if (j == 8 || j == 16 || j == 17 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 6)
{
if (j == 8 || j == 16 || j == 17 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 7)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 8)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 9)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 10)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 11)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 12)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 13)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 14)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 15)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 16)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 17)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 18)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 19)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 20)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 21)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 22)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 23)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 24)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 25)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 26)
{
if (j >= 6 && j <= 10)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 27)
{
if (j == 6 || j == 10)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 28)
{
if (j >= 4 && j <= 12)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 29)
{
if (j == 4 || j == 12)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 30)
{
if (j >= 2 && j <= 14)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
}
}
Console.WriteLine("I AM AN INDIAN");
Console.WriteLine("I LOVE MY COUNTRY");
Console.ReadLine();
}
}
{
static void Main(string[] args)
{
for (int i = 1; i <= 32; i++)
{
for (int j = 1; j <= 26; j++)
{
if (i == 1)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 2)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 3)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 4)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 5)
{
if (j == 8 || j == 16 || j == 17 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 6)
{
if (j == 8 || j == 16 || j == 17 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 7)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 8)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 9)
{
if (j == 8 || j == 25)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 10)
{
if (j >= 8 && j < 26)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 11)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 12)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 13)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 14)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 15)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 16)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 17)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 18)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 19)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 20)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 21)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 22)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 23)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 24)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 25)
{
if (j == 8)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 26)
{
if (j >= 6 && j <= 10)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 27)
{
if (j == 6 || j == 10)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 28)
{
if (j >= 4 && j <= 12)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 29)
{
if (j == 4 || j == 12)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
if (i == 30)
{
if (j >= 2 && j <= 14)
Console.Write("*");
else if (j == 26)
Console.WriteLine();
else
Console.Write(" ");
}
}
}
Console.WriteLine("I AM AN INDIAN");
Console.WriteLine("I LOVE MY COUNTRY");
Console.ReadLine();
}
}
No comments:
Post a Comment