write a vb script to display the number is odd or even and
whether it is divisible by 9 or not
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
who you define variables and functions in VB?
Explain about adodb.stream class?
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
join all the array values without using join function?
Which function is used in the vbscript language to convert the specified expression into a date type value?
how to validate the text in a web table
How to delete a cookie using vbscript?
Please Example programms on vbscript 1)writing functions and calling functions
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
What are string functions in vbscript?
How can you create a file object to work with the files in the vbscript language?