Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Sleep/Fortran/sleep.f
Normal file
18
Task/Sleep/Fortran/sleep.f
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
program test_sleep
|
||||
|
||||
implicit none
|
||||
integer :: iostat
|
||||
integer :: seconds
|
||||
character (32) :: argument
|
||||
|
||||
if (iargc () == 1) then
|
||||
call getarg (1, argument)
|
||||
read (argument, *, iostat = iostat) seconds
|
||||
if (iostat == 0) then
|
||||
write (*, '(a)') 'Sleeping...'
|
||||
call sleep (seconds)
|
||||
write (*, '(a)') 'Awake!'
|
||||
end if
|
||||
end if
|
||||
|
||||
end program test_sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue