10 lines
180 B
Mathematica
10 lines
180 B
Mathematica
|
|
function sleep()
|
||
|
|
|
||
|
|
time = input('How many seconds would you like me to sleep for? ');
|
||
|
|
assert(time > .01);
|
||
|
|
disp('Sleeping...');
|
||
|
|
pause(time);
|
||
|
|
disp('Awake!');
|
||
|
|
|
||
|
|
end
|