確 率 人
松浦將國個人の備忘録兼掲示板です.
Showing posts with label
Fortran
.
Show all posts
Showing posts with label
Fortran
.
Show all posts
Fortran の "Hello, world!"
Emacs で以下のファイル(ファイル名は sample00.f90)を編集。
write(*,*), 'Hello, world!'
stop
end
あとは、コマンドラインで
$ gfortran sample00.f90
とし、エラーメッセージが無い事を確認してから、
$ ./a.out
とすれば、"Hello, world!" が表示される。
Older Posts
Home
Subscribe to:
Posts (Atom)