By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,277 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

C# beginner

P: n/a
(Type your message here)

--------------------------------
From: lovey dovey

Hi there,
I am fairly new to C# programming and i am trying out some exercises.Can anyone help me with the code that takes an odd integer input and writes a diamond of that number on the screen with that many rows. For example, if 5
is entered, the output will show like this:
5
5 5
5 5 5 and if 3,it should b like 3
5 5 3 3
5 3
The program should perform the same thing if any symbol is input,
e.g"*". In that case it should ask the user the no: of lines to print and it should print a diamond of that character with the specified number of lines.
Thanx a ton in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>dX/6AA6faE2bw0WXVY+7/w==</Id>
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
This sounds like a homework to me :)
Is it homework?
"lovey dovey via .NET 247" <an*******@dotnet247.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
(Type your message here)

--------------------------------
From: lovey dovey

Hi there,
I am fairly new to C# programming and i am trying out some exercises.Can anyone help me with the code that takes an odd integer input and writes a
diamond of that number on the screen with that many rows. For example, if 5 is entered, the output will show like this:
5
5 5
5 5 5 and if 3,it should b like 3
5 5 3 3
5 3
The program should perform the same thing if any symbol is input,
e.g"*". In that case it should ask the user the no: of lines to print and it should print a diamond of that character with the specified number of
lines. Thanx a ton in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>dX/6AA6faE2bw0WXVY+7/w==</Id>

Nov 18 '05 #2

P: n/a
Hello lovey dovey via .NET 247,

I'd be glad to *help* you. I'm not going to do it for you though, so why dont you post what you have so far? And ask questions about particular items you need help with?

(Type your message here)

--------------------------------
From: lovey dovey
Hi there,
I am fairly new to C# programming and i am trying out some
exercises.Can anyone help me with the code that takes an odd integer
input and writes a diamond of that number on the screen with that many
rows. For example, if 5
is entered, the output will show like this:
5
5 5
5 5 5 and if 3,it should b like 3
5 5 3 3
5 3
The program should perform the same thing if any symbol is input,
e.g"*". In that case it should ask the user the no: of lines to print
and it should print a diamond of that character with the specified
number of lines.

Thanx a ton in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>dX/6AA6faE2bw0WXVY+7/w==</Id>

--

--
Matt Berther
http://www.mattberther.com
Nov 18 '05 #3

P: n/a
I recommend Deitel Developer Series, "C# A Programmer's Introduction"
that will teach you to use the language. You should also consider
"Simply C#: An Application-Driven Tutorial Approach"

SEE: http://www.deitel.com/
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"lovey dovey via .NET 247" <an*******@dotnet247.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
(Type your message here)

--------------------------------
From: lovey dovey

Hi there,
I am fairly new to C# programming and i am trying out some exercises.Can anyone help me with the code that takes an odd integer
input and writes a diamond of that number on the screen with that many
rows. For example, if 5 is entered, the output will show like this:
5
5 5
5 5 5 and if 3,it should b like 3
5 5 3 3
5 3
The program should perform the same thing if any symbol is input,
e.g"*". In that case it should ask the user the no: of lines to print and it should print a diamond of that character with the specified
number of lines. Thanx a ton in advance.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>dX/6AA6faE2bw0WXVY+7/w==</Id>

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.