Check whether given Number is Even or Odd?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Convert Hex color code to color name in VB Script?

3924


regular expression that will recognize a browser as long as its name property starts with mybrowser

1755


Mention the environments where vbscript could be run?

647


Mention the rules for using option explicit statement?

476


Explain some uses of vb script?

545






how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

12866


Which keyword is used to declare a variable in the vbscript language?

527


What is the use of option explicit statement?

578


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

1577


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

853


What purpose does ‘on error resume next’ serves?

543


when we use filter funtiom invb script(QTP)

2295


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1407


What is select case statement?

589


i need to sort the data using qtp script for this how i need to write a qtp script

3212