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

What are string functions in vbscript?

656


Mention what is vbscript procedures?

536


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

1551


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

869


What is the difference between vb debugger and the script debugger?

588






What methods are used to create text files and open text files in the vbscript language?

534


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

1792


What are class properties?

653


Mention characteristics of sub procedures?

578


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

3218


How to delete a cookie using vbscript?

553


Explain vbscript in detail?

616


How to pass argument by reference to a function in vbscript?

536


What are the advantages of vbscript?

644


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.

1739