Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/User-input-Text/Pop11/user-input-text.pop11
Normal file
9
Task/User-input-Text/Pop11/user-input-text.pop11
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
;;; Setup item reader
|
||||
lvars itemrep = incharitem(charin);
|
||||
lvars s, c, j = 0;
|
||||
;;; read chars up to a newline and put them on the stack
|
||||
while (charin() ->> c) /= `\n` do j + 1 -> j ; c endwhile;
|
||||
;;; build the string
|
||||
consstring(j) -> s;
|
||||
;;; read the integer
|
||||
lvars i = itemrep();
|
||||
Loading…
Add table
Add a link
Reference in a new issue