13,257,276 members (52,970 online)
Rate this:
See more:
the previous version of consecutive triangles is done and if any help on figures in four directions like rhombus in proper order.
Posted 24-Sep-12 22:05pm
BobJanova 25-Sep-12 6:09am

homework

Rate this:

## Solution 1

Here are some samples for C - you may easily port them to .NET:
http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html[^]
Rate this:

Rate this:

## Solution 3

hiii,

```class Program
{
static void Main(string[] args)
{
int i, j, k, n;

Console.Write("Enter the No. :");

for (i = 1; i <= n + (n - 1); i++)
{
for (j = 1; j <= n + (n - 1); j++)
{
if (i + j == (n + 1) || i + j == (n + n + n - 1) || i - j == (n -
1) || i - j == -(n - 1))
Console.Write("*");
else
Console.Write(" ");
}
Console.WriteLine("\n");
}
}
}```

Top Experts
Last 24hrsThis month
 OriginalGriff 245 Jochen Arndt 195 Dave Kreskowiak 165 F-ES Sitecore 150 CPallini 125
 OriginalGriff 4,124 Karthik Bangalore 2,276 ppolymorphe 1,764 Dave Kreskowiak 1,576 CPallini 1,355