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
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
write a program to display configuration of a local system with the help of vb script.
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
how to acces the remote mechine using vb cript(QTP)
How will you get a subset of a array in vbscript?
Explain the scope of the variables using dim, public, and private keywords respectively.
Explain about vb script?
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
What's the difference between vbscript and vb.net?
What purpose does ‘on error resume next’ serves?
what is diff between static and dynaic arrys?
How will you get a random number between 0 and 1 in vbscript?
What is the purpose of the err object in the vbscript language?
about vb scripting programs this type of all question& answers