write a vb script to display the number is odd or even and
whether it is divisible by 9 or not
Answer Posted / mudaseer
vnum=cint(inputbox("enter a number"))
if vnum=0 then
msgbox "invalid"
end if
if vnum mod 2=0 then
msgbox "even"
else msgbox "odd"
end if
if vnum mod 9=0 then
msgbox "num is divisible by 9"
else
msgbox "num is not divisible by 9"
end if
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
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.
Which object provide information about a single runtime error in a vbscript?
How will you convert a string to upper case string using vbscript?
What if you do not specify anything when you call a procedure?
What is the use of the recordset object and which statement is used to create such an object?
How can constants be declared in the vbscript language?
Explain the adodb.stream class?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
Explain about the support of asp for vb script functionality?
did any one attended interview in applabs if you had gone through plz tell me the procedure
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
Which date function is used in the vbscript language to find the difference between the 2 dates?
Explain about .wsf files?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.