RosettaCodeData/Task/Sleep/Smalltalk/sleep-2.st

5 lines
144 B
Smalltalk

t := (Dialog request: 'Enter time in seconds') asNumber.
Transcript show: 'Sleeping...'.
(Delay forSeconds: t) wait.
Transcript show: 'Awake!'.