12,621,492 members (36,699 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 278 Midi_Mick 200 Jochen Arndt 185 ppolymorphe 174 King Fisher 164
 OriginalGriff 687 ppolymorphe 319 CPallini 263 Midi_Mick 225 Richard MacCutchan 202