Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / manjunathareddy
Dim n
Dim s
Dim x
input=124
n=124
While int(n)>0
s=n mod 10
x=x&s
n=Int(n)/10
Wend
Msgbox input&x
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain what is loose binding? Why is it not a good practice to use it?
how to check whether link is disabled in QTP??
How will you reverse a string in vbscript?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
Explain about scrrun.dll in vbscript?
How can you create an object in vbscript?
What are class variables?
How to Import data from a file (file is on the desktop) to the data table
Mention what is byref and byval parameters in vbscript?
How can the spaces from the string be removed?
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
What are events in the vbscript language?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
Mention how you can call vbscript functions?
what is the standards used for writing the script in QTP