Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Integer-comparison/XLISP/integer-comparison.l
Normal file
10
Task/Integer-comparison/XLISP/integer-comparison.l
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