static void Main22 (string[] args)
{
Rhombic
Console.WriteLine ("Please enter waist length:");
int n = Convert.ToInt32 (Console.ReadLine ());
for (int i = 0; I <n; i++)
{
for (int j = 0; J <n-i; J + +)
{
Console.Write ("");
}
for (int k =0; k <2*i-1; k++)
{
Console.Write ("★");
}
Console.Write ("\ n");
}
for (int l = 0; l <=n; l++)
{
for (int m = 0; M <l; m++)
{
Console.Write ("");
}
for (int o = 2*n-1; o >2*l; o--)
{
Console.Write ("★");
}
Console.Write ("\ n");
}
}
static void Main14 (string[] args)
{
Right-hand upper waist right triangle
Console.WriteLine ("Please enter waist length:");
int n = Convert.ToInt32 (Console.ReadLine ());
for (int i = 0; I <=n; i++)
{
for (int k = 0; k < i; k++)
{
Console.Write ("");
}
for (int j = n; j > i; j--)
{
Console.Write ("★");
}
Console.Write ("\ n");
}
}
static void Main13 (string[] args)
{
Right inferior waist right triangle
Console.WriteLine ("Please enter waist length:");
int n = Convert.ToInt32 (Console.ReadLine ());
for (int i = 0; i<n; i++)
{
for (int k = 1; k <n-i; k++)
{
Console.Write ("");
}
for (int j = 0; J <=i; J + +)
{
Console.Write ("★");
}
Console.Write ("\ n");
}
}
static void Main12 (string[] args)
{
Left-hand upper waist right triangle
Console.WriteLine ("Please enter waist length:");
int n = Convert.ToInt32 (Console.ReadLine ());
for (int i = n; I >=0; i--)
{
for (int j = 0; J < i; J + +)
{
Console.Write ("★");
}
Console.Write ("\ n");
}
}
static void Main11 (string[] args)
{
Left inferior waist right triangle
Console.WriteLine ("Please enter waist length:");
int n = Convert.ToInt32 (Console. ReadLine ());
for (int i = 0; I <= N; i++)
{
for (int j = 0; J < i; J + +)
{
Console.Write ("★");
}
Console.Write ("\ n");
}
}
#region * * * * CYCLE Practice * * *
static void Main5 (string[] args)
{
int j = 1;
for (int i = 6; I >0; i--)
{
j = j*i;
}
Console.Write (j);
}
static void Main4 (string[] args)
{
for (int i = 1; i <; i++)
{
if (i%7==0| | i%10==7| | I/10==7)
Console.Write ("{0}", i);
}
}
static void Main3 (string[] args)
{
for (int i = 0; i <; i++)
{
Console.Write ((char) i+ "={0}", i);
}
}
static void Main2 (string[] args)
{
for (int i = 1; i < Wuyi; i++)
{
Int j = 2 * i-1;
Console.Write ("{0}", j);
}
}
static void Main1 (string[] args)
{
Console.Write ("This is a");
for (int i = 1; i <=; i++)
{
Console.Write ("very");
}
Console.Write ("long sentence");
}
#endregion
Fibonacci sequence
static void Main (string[] args)
{
int b=1;
int c=0;
int d=0;
for (int a = 1; a <; a++)
{
D = b + C;
b = C;
c = D;
Console.Write ("{0}", d);
}
}
Monkeys eat peaches
static void Main32 (string[] args)
{
int b=1;
for (int a = 1; a < 7; a++)
{
B = (b + 1) * 2;
}
Console.Write ("original {0} peaches", b);
}
static void Main31 (string[] args)
{
for (int a = 0; a <=; a++)
{
for (int b = 0; b <=; b++)
{
for (int c = 0; c <= 7; C + +)
{
if (5 * A + 2 * b + * c = = 100)
Console.WriteLine ("Purchase {0} toothbrush, {1} block soap, {2} bottle shampoo", a,b,c);
}
}
}
}
static void Main1111111111111 (string[] args)
{
Prime numbers within 100
for (int i = 2; i <; i++)
{
bool A = true;
for (int j = 2; J <=math. SQRT (i); J + +)
{
if (i% j = 0)
{
A=false;
Break
}
}
if (a)
Console.Write ("{0}", i);
}
}
Visual studio-c#-20160417-print stars, iterative poor lift