Fortran input output example

This is a little Fortran example hot to read, calculate and write in terminal:

program hello
    implicit none
    integer:: i
    Print  *,"write your number:"
    read   *, i
    print  *,"your number:",i
    print  *,"your result:",i
end program Hello

our output:

 write your number:    
 your number:           4 
 your result:          16

5 thoughts on “Fortran input output example”

  1. Thanks for this post, I’m a big fan of this web web site would like to proceed updated.

  2. Hey – nice blog, just looking about some blogs, appears a fairly good platform you might be making use of. Im currently using WordPress for several of my websites but looking to alter one of them around to a platform similar to yours as a trial run. Something in specific you would recommend about it?

  3. Your style is very unique in comparison to other folks I
    have read stuff from. I appreciate you for posting when you’ve got
    the opportunity, Guess I’ll just book mark this

  4. Excellent website youu have here but I was wanting to know if you knew of any forums that cover
    the same topics talked about here? I’d really love to be a
    part of group where I cann get suggestions from other experienced individduals that share the same interest.
    If you have any suggestions, please lett me know.


Leave a Reply

Your email address will not be published.

three × five =