Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
12
Task/Even-or-odd/VBScript/even-or-odd.vbs
Normal file
12
Task/Even-or-odd/VBScript/even-or-odd.vbs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Function odd_or_even(n)
|
||||
If n Mod 2 = 0 Then
|
||||
odd_or_even = "Even"
|
||||
Else
|
||||
odd_or_even = "Odd"
|
||||
End If
|
||||
End Function
|
||||
|
||||
WScript.StdOut.Write "Please enter a number: "
|
||||
n = WScript.StdIn.ReadLine
|
||||
WScript.StdOut.Write n & " is " & odd_or_even(CInt(n))
|
||||
WScript.StdOut.WriteLine
|
||||
Loading…
Add table
Add a link
Reference in a new issue