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
Does VB/Win make standalone .EXE files?
What purpose does ‘on error resume next’ serves?
How to throw an error in vbscript?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
How will you convert a string to upper case string using vbscript?
How to open a file. What is the perpose of true and false mode there?
How to get the length of the string by making use of the string function?
Is vbscript language a case-sensitive language and what does it mean?
Explain about filter expression?
What is vbscript language used for and which earlier language is it modeled upon?
What are the differences between sub procedures and function procedures?
What is the use of the date function in the vbscript language?
Explain the operator precedence in vb script?
Description.Create