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

VB.NET Noob Code for "Diamond"

P: 2
"Diamond of Asterisks"
--------------------------------------------------------------------------------

Sorry to all the experienced users who will think I'm lame for asking this question, but I'm having a hard time trying to figure out the VB.NET code to create a "Diamond of stars" that looks like this:


*
***
*****
*******
*********
*******
*****
***
*

There are 9 rows and 9 columns, i know there are a couple for-next loops in there, one of which has a "step 2" for adding the *'s and steps for adding spaces, then followed by ControlChars.NewLine. I just can't get it to save my life. If there's anyone that knows how to create this code, I would really appreciate it... Thank you very much!
Apr 20 '07 #1
Share this Question
Share on Google+
1 Reply


SammyB
Expert 100+
P: 807
We know how, but if you read the posting guidelines, you will see that we will not do a homework assignment for you. We will try to help you with specific questions, but in such a way that you learn the material. So, what have you done? What are you puzzled about? What are you currently learning and how does that apply to your problem. If you ask specific questions, you will probably get answers. --Sam
Apr 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.