By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Find out the output of the following codes;

P: 1
Expand|Select|Wrap|Line Numbers
  1. Dim fr as String
  2. fr = "HELLO"
  3. I = Len(fr)
  4. Do While I > 0
  5. Print Right(fr,I)
  6. I =I-1
  7. Loop
Feb 11 '13 #1
Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,383
Run the code and you'll find your answer.
Feb 11 '13 #2

!NoItAll
100+
P: 296
OLLEH is the output. It iterates through the string from back to front.
Feb 22 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.