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

Codes For A Number Pyramid Please?!


  • Please log in to reply
3 replies to this topic

#1 f1f2

f1f2

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Local time:10:14 AM

Posted 15 January 2007 - 06:51 AM

I am using VB and, I badly need a program that
prints these stuff:


1
12
123
1234
12345
123456
1234567
12345678
123456789

thanks..

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:14 AM

Posted 16 January 2007 - 06:17 PM

Then we badly need to see what you have come up with so far. This is a trivial assignment, done with a simple loop and string concatenation.
Seriously, this is a typical question given to teach about control structures. The actual code that does the work is like 4 lines. Show us what you have, and someone will be happy to help you get on track.

#3 Keithuk

Keithuk

  • Members
  • 957 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:14 PM

Posted 31 January 2007 - 11:03 AM

Code Removed~g

Edited by groovicus, 31 January 2007 - 12:06 PM.

Keith

Windows ME (spare computer)
Windows XP 2002 Professional SP3 (desktop computer)
Windows 7 Professional SP1 32bit (laptop computer)

Windows 8 64bit spare drive for laptop computer


#4 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:14 AM

Posted 31 January 2007 - 12:09 PM

Keithuk,

While we do appreciate your willingness to help, we would ask that you remember that this is a learning environment, and as such, spoon feeding those that won't even make an attempt to do their own homework will not allow them to actually learn. If someone offers up a sample of their own work, then by all means guide them towards a solution. But at least do it in a manner that they will learn something. There are already enough programmers that can't program.

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users