Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/Integer-comparison/XLISP/integer-comparison.xlisp
Normal file
10
Task/Integer-comparison/XLISP/integer-comparison.xlisp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(DEFUN COMPARE-INTEGERS ()
|
||||
(DISPLAY "Enter two integers separated by a space.")
|
||||
(NEWLINE)
|
||||
(DISPLAY "> ")
|
||||
(DEFINE A (READ))
|
||||
(DEFINE B (READ))
|
||||
(COND
|
||||
((> A B) (DISPLAY "The first number is larger."))
|
||||
((= A B) (DISPLAY "They are equal."))
|
||||
((< A B) (DISPLAY "The first number is smaller."))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue