Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Integer-comparison/Pop11/integer-comparison.pop11
Normal file
17
Task/Integer-comparison/Pop11/integer-comparison.pop11
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
;;; Comparison procedure
|
||||
define compare_integers(x, y);
|
||||
if x > y then
|
||||
printf('x is greater than y\n');
|
||||
elseif x < y then
|
||||
printf('x is less than y\n');
|
||||
elseif x = y then
|
||||
printf('x equals y\n');
|
||||
endif;
|
||||
enddefine;
|
||||
|
||||
;;; Setup token reader
|
||||
vars itemrep;
|
||||
incharitem(charin) -> itemrep;
|
||||
|
||||
;;; Read numbers and call comparison procedure
|
||||
compare_integers(itemrep(), itemrep());
|
||||
Loading…
Add table
Add a link
Reference in a new issue