VB code.

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 2
Reputation: leticiasue is an unknown quantity at this point 
Solved Threads: 0
leticiasue leticiasue is offline Offline
Newbie Poster

VB code.

 
0
  #1
Nov 2nd, 2008
How to product this code as shown below:

If I enter "5" and "10" in the console screen, it display
5 *****
10 **********

Whatever I enter any positive numbers, the screen will display the asterisk partern and depend on the number input.

Please tell me the method using VB code to handle this program.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 306
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 26
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz

Re: VB code.

 
0
  #2
Nov 2nd, 2008
Since this sounds like an assignment for class, I will try to point you in the right direction and let you finish things off... let me know if you need more help.

1) You will probably want to use a For...Next loop.
2) You probably want to use the commend Console.Write
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: VB code.

 
0
  #3
Nov 3rd, 2008
Instead of a for next loop, use the new string function. ie.
  1. str = New String(character,number of characters)
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC