Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Arithmetic-Integer/Pop11/arithmetic-integer.pop11
Normal file
11
Task/Arithmetic-Integer/Pop11/arithmetic-integer.pop11
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
;;; Setup token reader
|
||||
vars itemrep;
|
||||
incharitem(charin) -> itemrep;
|
||||
;;; read the numbers
|
||||
lvars a = itemrep(), b = itemrep();
|
||||
;;; Print results
|
||||
printf(a + b, 'a + b = %p\n');
|
||||
printf(a - b, 'a - b = %p\n');
|
||||
printf(a * b, 'a * b = %p\n');
|
||||
printf(a div b, 'a div b = %p\n');
|
||||
printf(a mod b, 'a mod b = %p\n');
|
||||
Loading…
Add table
Add a link
Reference in a new issue