Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Even-or-odd/MAXScript/even-or-odd.max
Normal file
6
Task/Even-or-odd/MAXScript/even-or-odd.max
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-- MAXScript : Even or Odd : N.H. 2019
|
||||
-- Open the MAXScript Listener for input and output
|
||||
userInt = getKBValue prompt:"Enter an integer and i will tell you if its Even or Odd : "
|
||||
if classOf userInt != Integer then print "The value you enter must be an integer"
|
||||
else if (Mod userInt 2) == 0 Then Print "Your number is even"
|
||||
else Print "Your number is odd"
|
||||
Loading…
Add table
Add a link
Reference in a new issue