program main c*********************************************************************72 c cc MAIN is the main program for HELLO. c c Discussion: c c HELLO is a simple FORTRAN77 program that says "Hello, world!". c c Licensing: c c This code is distributed under the MIT license. c c Modified: c c 03 March 2006 c c Author: c c John Burkardt c implicit none call timestamp ( ) write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'HELLO:' write ( *, '(a)' ) ' FORTRAN77 version' write ( *, '(a)' ) ' This is how to say:' write ( *, '(a)' ) ' ' write ( *, '(a)' ) ' Hello, world!' write ( *, '(a)' ) ' ' call timestamp ( ) stop end subroutine timestamp ( ) c*********************************************************************72 c cc TIMESTAMP prints out the current YMDHMS date as a timestamp. c c Discussion: c c This FORTRAN77 version is made available for cases where the c FORTRAN90 version cannot be used. c c Licensing: c c This code is distributed under the MIT license. c c Modified: c c 16 September 2005 c c Author: c c John Burkardt c c Parameters: c c None c implicit none character ( len = 8 ) date character ( len = 10 ) time call date_and_time ( date, time ) write ( *, '(a8,2x,a10)' ) date, time return end