Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Need Help In Visual Basic For Application Code.


  • Please log in to reply
2 replies to this topic

#1 Nikas

Nikas

  • Members
  • 650 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Singapore
  • Local time:09:58 AM

Posted 10 December 2005 - 07:24 AM

i have this question

Write a VBA program (using Loop) to generate the following Xmas tree figure.
Refer to Appendix for hints. (Change the column width to 2 )

Posted Image

Any Help ?

Edited by Nikas, 10 December 2005 - 07:25 AM.


BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:58 PM

Posted 11 December 2005 - 09:45 AM

Since it is appears to be homework, what do you think you should do? Think about your problem. The first line has one asterisk. The second line has two asterisks, etc. There area total of 9 lines. There are two things you need to consider. First, how to stop after writing nine lines. Second, how do you append the strings so that one more asterisk is added to the string each line?

#3 Nikas

Nikas
  • Topic Starter

  • Members
  • 650 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Singapore
  • Local time:09:58 AM

Posted 13 December 2005 - 11:58 AM

i've got it already. anyway thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users