Find out the output of the following codes;

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baibhavranjan
    New Member
    • Feb 2013
    • 1

    Find out the output of the following codes;

    Code:
    Dim fr as String
    fr = "HELLO"
    I = Len(fr)
    Do While I > 0
    Print Right(fr,I)
    I =I-1
    Loop
    Last edited by Rabbit; Feb 11 '13, 05:16 PM. Reason: Please use code tags when posting code.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Run the code and you'll find your answer.

    Comment

    • !NoItAll
      Contributor
      • May 2006
      • 297

      #3
      OLLEH is the output. It iterates through the string from back to front.

      Comment

      Working...