C# beginner

  • Thread starter Thread starter lovey dovey via .NET 247
  • Start date Start date
L

lovey dovey via .NET 247

(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.
 
This sounds like a homework to me :)
Is it homework?


lovey dovey via .NET 247 said:
(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.
 
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?
 
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 (e-mail address removed)
URL http://www.metromilwaukee.com/clintongallagher/




lovey dovey via .NET 247 said:
(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.
 
Back
Top