Thursday 27 April 2017

Odd/ Even Check by VB Script

Program

a=cint(inputbox ("enter the value of a"))
if (a mod 2 =0) then
msgbox "value is even"

else
msgbox "value is odd"
end if


Steps-
Step1-Open Notepad and write the program.
Step2- Save as this file- .vbs
Step3- open file and get output

No comments:

Post a Comment