|
Are you going to ask the same question for every two-dimensional pattern you come across?
Please stop spamming this forum!
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
It's home work, we know it's homework, we're not going to do your homework for you.
|
|
|
|
|
LOL
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
What I can see here is the design, but where is the code?
Manoj
Never Gives up
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
namespace homework2
{
class Program
{
static void Main(string[] args)
{
for (int x = 1; x <= 1; x++)
Console.ForegroundColor = ConsoleColor.Green;
{
for (int y = 1; y <= 1; y++)
{
Console.Write("*");
Console.ForegroundColor = ConsoleColor.Green;
}
for (int r = 1; r <= 4; r++)
{
Console.Write("*");
Console.ForegroundColor = ConsoleColor.Green;
}
Console.Write("\n");
}
for (int e = 1; e <= 1; e++)
{
Console.Write(" *****");
}
Console.Write("\n");
Console.ForegroundColor = ConsoleColor.Yellow;
for (int j = 1; j<= 1; j++)
{
Console.Write(" *****");
}
Console.Write("\n");
for
(int k = 1; k <= 1; k++)
{
Console.Write(" *****");
}
Console.Write("\n");
}
}
}
|
|
|
|
|
using System;
using System.Collections.Generic;
using System.Text;
namespace homework2
{
class Program
{
static void Main(string[] args)
{
for (int x = 1; x <= 1; x++)
Console.ForegroundColor = ConsoleColor.Green;
{
for (int y = 1; y <= 1; y++)
{
Console.Write("*");
Console.ForegroundColor = ConsoleColor.Green;
}
for (int r = 1; r <= 4; r++)
{
Console.Write("*");
Console.ForegroundColor = ConsoleColor.Green;
}
Console.Write("\n");
}
for (int e = 1; e <= 1; e++)
{
Console.Write(" *****");
}
Console.Write("\n");
Console.ForegroundColor = ConsoleColor.Yellow;
for (int j = 1; j<= 1; j++)
{
Console.Write(" *****");
}
Console.Write("\n");
for
(int k = 1; k <= 1; k++)
{
Console.Write(" *****");
}
Console.Write("\n");
}
}
}
|
|
|
|
|
What have you actually tried to come to the solution?
People will help only if you can prove you
1. searched for yourself
2. tried to come to a solution yourself
V.
No hurries, no worries
|
|
|
|
|
|
Flip to back of textbook and read solution to exercise 1-2.
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
They are both very easy and should be one of the first things you try out with the language. Both use loops. The first, a single loop, the second a nested loop.
Show us what you have tried up to now.
More importantly, why do you want to do this in a console application? Is it a homework questions?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Of course its a homework question ... wtf would that do in the real world lol.
|
|
|
|
|
It's the new Microsoft o console program. Solves all sorts of real world problems - well it would if you had a problem where you needed symettrical output to a console.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It's the new Hell-o World program
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Culture independent communication. Nice.
Flashback to 1977 and "Close encounters of the third kind"...
---
single minded; short sighted; long gone;
|
|
|
|
|
Wow...Its a really very good question !!
Keep posting
Manoj
Never Gives up
|
|
|
|
|
1.)
for (int i = 0; i < 24; ) Console.Write(i++ % 6 == 5 ? "\r\n" : "o");
2.)
for (int i = 0; i <9 ; i++) Console.WriteLine(new String('0', ++i));
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Hi,
I am trying to integrate MS Word in my application as a control, can I? Actually I want to use the drawing tools and equation editor tool of MS Word in my application.
How can I do this?
Pls help me.
Thanx
|
|
|
|
|
Hi,
I recommend you another way - to integrate your app into Word, e.g. build your app over a documet-level VSTO solution or in application-level Word add-in. Unfortunately, Word as a COM object doesn't provide its tools separately (the drawing tool in your case).
|
|
|
|
|
is there any way or properties that set closed all nodes of an XML file?
thank you
|
|
|
|
|
What do you mean? In what way do you want to "close" the nodes?
Are you talking about something that is displaying an xml file?
---
single minded; short sighted; long gone;
|
|
|
|
|
yes, when an xml file displaying
|
|
|
|
|
Alt-F4?
Alt+Ctrl+Delete?
It all depends on which viewer you are using...
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
i don't want to close viewer
i need all nodes are closed when an xml file open for display
when you open an xml file, it is like as below
-[root]
-[child]
[msg]text1[/msg]
-[child]
[msg]text1[/msg]
-[child]
[msg]text1[/msg]
[/root]
and what i need is below
-[root]
+[child]
+[child]
+[child]
[/root]
|
|
|
|
|
I was being sarcastic. Perhaps if you told us the viewer we could help. Also, what has this to do with C#?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|