Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / ramesh
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
Please explain this...........i am new to vb script
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is vbscript a case-sensitive or case-insensitive?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
In html file what is an ideal position to include vbscript?
write a program to display configuration of a local system with the help of vb script.
Can anyone send me a vb script function for verifying the functionality of active links on a web page
What is the event handling in vbscript?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
What is the purpose of on error resume next statement?
How strcomp function works?
How to delete a cookie using vbscript?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
How are values assigned to string type and numeric type variables?
Why is it recommended to close the database connection every time after the work is completed?
what is resorceallocation
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using