Check whether given Number is Even or Odd?
Answers were Sorted based on User's Feedback
Answer / styxopty
i = cint(inputbox ("Enter any Number to check Even or Odd"))
if i mod 2 = 0 Then
msgbox i&" is Even"
else
msgbox i&" is Odd"
end if
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / subhani
No = Inputbox("Enter a number to check whether it is Odd or Even")
If no mod 2 = 0 then
msgbox no & " is even."
else
msgbox no & " is odd."
end if
| Is This Answer Correct ? | 2 Yes | 0 No |
Explain How do you create a recordset object in vbscript?
Does VB/Win make standalone .EXE files?
How to Enter Values on the Command promt using VB script
How will you convert a given number to long in vbscript?
How will you reverse a string in vbscript?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
How to load vbs functions in qtp
Explain about tristate constants in vbscript?
What is the equivalent of VBScript?s On Error In Jscript ?
Which is the default Data types in VBScript?
Which constant is used for print and display functions and works as same as pressing enter key?
How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.