Diamond + Number Rabbit
Console.Write ("Please enter a number:");
int a = Int. Parse (Console.ReadLine ());
for (int i = 1; I <= (a + 1); i++)
{
for (int l = i; l <= A; l++)
{
Console.Write ("");
}
for (int l = 1; l <= i; l++)
{
Console.Write ("★");
}
Console.WriteLine ();
}
for (int i = 1; i <= A; i++)
{
for (int l = 1; l <= i; l++)
{
Console.Write ("");
}
for (int l = A; l >= i; l--)
{
Console.Write ("☆");
}
Console.WriteLine ();
}
Console.Write ("Please enter the number of months:");
int a = Int. Parse (Console.ReadLine ());
int B = 1, c = 0, d = 0, E = 0;
for (int i = 1; i <= A; i++)
{
if (i = = 1)
{
b = 1;
c = 0;
d = 0;
}
Else
{
D = d + C;
c = b;
b = D;
}
}
E = B + D + C;
Console.Write ("The number of young rabbits is:" + b);
Console.Write ("The number of small rabbits is:" + C);
Console.Write ("The number of rabbits is:" + D);
Console.Write ("Total number of rabbits is:" + e);
Day Fifth and 51