Created
October 8, 2012 15:06
-
-
Save shoya140/3853007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program timer | |
integer time_max, i | |
i = 0 | |
print *, "This program will tell you when X seconds is up." | |
print *, "Please input X(Real number psease) and push ENTER." | |
read *, time_max | |
!count down | |
do i = time_max, 1, -1 | |
print *, i | |
call system("sleep 1") | |
end do | |
!alarm | |
do | |
print *, "Finished!!" | |
end do | |
end program timer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment