all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
14
Task/User-input-Text/Oz/user-input-text.oz
Normal file
14
Task/User-input-Text/Oz/user-input-text.oz
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
declare
|
||||
StdIn = {New class $ from Open.file Open.text end init(name:stdin)}
|
||||
StringInput
|
||||
Num = {NewCell 0}
|
||||
in
|
||||
{System.printInfo "Enter a string: "}
|
||||
StringInput = {StdIn getS($)}
|
||||
|
||||
for until:@Num == 75000 do
|
||||
{System.printInfo "Enter 75000: "}
|
||||
Line = {StdIn getS($)}
|
||||
in
|
||||
Num := try {String.toInt Line} catch _ then 0 end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue