Tuesday, June 17, 2014

fortran learning notes-2-write and read

06/17/2014

WRITE
-----------------------------------------------------------------------------
example 1:
! convert a integer to a string.
program test
Integer:: I
Character(len=10):: str
I = 9999
Write( str, '(I10)' ) I
print *, str
End



 PRINT



---------------------------------------------------------------------------

No comments:

Post a Comment