int a=4857 i need output as 7584.without using any inbuild
function?
Answers were Sorted based on User's Feedback
Answer / r.singh
varnum=4857
vartemp=0
while(varnum/10)>0 then
vartemp=(vartemp*10)+(varnum mod 10)
varnum=varnum/10
wend
rev=vartemp
msgbox rev
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / bantanahal haribabu
s="12345"
While int(s)>0
n=s mod 10
x=x&n
s=int(s)/10
Wend
msgbox x
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / testengineer
Thanku Mr.R.Singh,Miss Sumathi and Mr. Bantanahal Haribabu
But Could u please confirm me whether "MOD,INT,LEN" are Inbuilt Functions are not?
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anil
s=4857
For i=Len(s) To 1 step-1
c=Mid(s,i,1)
temp=temp&c
Next
MsgBox temp
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sumathi
var=4857
For i=1 to len(var)
x=var mod 10
num=num&x
var=var/10
var=fix(var)
Next
print num
| Is This Answer Correct ? | 1 Yes | 0 No |
write a vb script to display factorial of a number using function
which one is more secure vb script or java script ??????? or both are same ??????
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
What is the purpose of the err object in the vbscript language?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?
What is the purpose of regexp object in vbscript?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
Which event is triggered when mouse focus comes out of an element in the vbscript language?
what is test scenario?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Explain about .wsf files?