home *** CD-ROM | disk | FTP | other *** search
- \ Balraj Sidhu Set: 14D4
- \ Comp 462 - Forth
- \ Date: April 7, 1990
- \ Problem 3.12
-
-
- : test ( n -- )
- cr dup ." The Number " . ." Is An "
- dup 2/ 2* =
- if ." Even "
- else ." Odd "
- then ." Number" ;
-
- : test1 ( n -- )
- cr dup ." The Number " . ." Is An "
- 1 and
- if ." Odd "
- else ." Even "
- then ." Number" ;
-
-
-
-
-
-