increment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aashrith
    New Member
    • Nov 2007
    • 3

    increment

    How to print character say * incrementing one in each row can anybody tell the code?
    Last edited by Killer42; Nov 28 '07, 01:36 AM.
  • CyberSoftHari
    Recognized Expert Contributor
    • Sep 2007
    • 488

    #2
    No one here to do your homework, you have to try.
    Use [CODE=vb]string(intIncre mentVal,"*")[/CODE] in a for loop.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by aashrith
      How to print character say * incrementing one in each row can anybody tell the code?
      Can you try to explain what you mean in more detail? Plus, what version of VB are you using?

      Comment

      • CyberSoftHari
        Recognized Expert Contributor
        • Sep 2007
        • 488

        #4
        He means to get the output of:

        Output
        -----------
        *
        **
        ***
        ****
        *****
        Last edited by Killer42; Nov 28 '07, 04:47 AM.

        Comment

        • aashrith
          New Member
          • Nov 2007
          • 3

          #5
          Yes, this is my requirement i am new to vb can you please send the code.

          Output
          -----------
          *
          **
          ***
          ****
          *****

          Comment

          • CyberSoftHari
            Recognized Expert Contributor
            • Sep 2007
            • 488

            #6
            What is the version of VB?
            (if it is VB 60 then you can try as I post @ #2)

            Comment

            Working...