Thursday, 27 April 2017

Odd/ Even Check by VB Script


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

msgbox "value is odd"
end if

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

No comments:

Post a Comment

Note: only a member of this blog may post a comment.