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.
--------------------------------
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.