Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Sleep/EMal/sleep.emal
Normal file
13
Task/Sleep/EMal/sleep.emal
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
^|The pause command takes milliseconds, we adjust to seconds|^
|
||||
fun main = int by List args
|
||||
int seconds
|
||||
if args.length == 1 do seconds = int!args[0] end
|
||||
if seconds == 0
|
||||
seconds = ask(int, "Enter number of seconds to sleep: ")
|
||||
end
|
||||
writeLine("Sleeping...")
|
||||
pause(1000 * seconds)
|
||||
writeLine("Awake!")
|
||||
return 0
|
||||
end
|
||||
exit main(Runtime.args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue