Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Fortran now has an integer variable k= 100, and now I want to assign 100 to a string variable. How can it be achieved?
Fortran now has an integer variable k= 100, and now I want to assign 100 to a string variable. How can it be achieved?
For example:

Integer k

Character *256 c

k= 100

Write (c, *) k

Print *, trim (c)

end

In this way, the content of k becomes a string and is passed to the string variable c, so we should draw inferences from one another.