Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 29th, 2004, 8:38 PM   #1
kalinga1234
Programmer
 
Join Date: Oct 2004
Posts: 31
Rep Power: 0 kalinga1234 is on a distinguished road
i need to know how to code the following program. I did it in c++ but it doesnt work out here.


******
*****
****
***
**
*
kalinga1234 is offline   Reply With Quote
Old Oct 30th, 2004, 2:09 AM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 6 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Dim blah as string

For I = 6 to 1 step -1
  For J = 1 to I
    Blah = Blah + "*"
  Next J

  Blah = Blah + "\r\n"
Next I

Do whatever you want with blah afterwards...
__________________

tempest is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC