write a vb script to display the number is odd or even and
whether it is divisible by 9 or not
Answer Posted / alok
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 ? | 2 Yes | 4 No |
Post New Answer View All Answers
How to Import data from a file (file is on the desktop) to the data table
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
Which constant is used for print and display functions and works as same as pressing enter key?
What are class properties?
What is the difference between function and procedure?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Both Static and dynamic arrays are handled by VB script. Is it true?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
What is the use of the date function in the vbscript language?
Explain about constants in vb script?
Explain different types of segment?
Is vbscript a case-sensitive or case-insensitive?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me