DOC

fortran

By Alma Rice,2014-06-27 17:18
16 views 0
fortran

1

    program main

     implicit none

     print *,"Hello"

     stop

    end program main

2

    ! Free Format program main

    write(*,*) "Hello" ! 这也是注解write(*.*) "Hello" ! 这也是注解

    write(*,*) &

    "Hello"

    wr&

    &ite(*,*) "Hello" end

3

    program main

    write(*,*) "Hello" stop

    end program main

4

    program main

    print *,"Hello" stop

    end program main

5

    program main

    integer a

    a=3

    write(*,*) "a=",a stop

    end

6

    program main

     integer a

     a=2+2*4-3

     write(*,*) "2+2*4-3",a

    stop

    end

7

    program ex0406

     integer(kind=4) write

     write=2+2*4-3

     write(*,*) "2+2*4-3=",write

    stop

    end

Report this document

For any questions or suggestions please email
cust-service@docsford.com