Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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