[fortran90][原创]安装fortran后的hello world

Posted FL1623863129

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[fortran90][原创]安装fortran后的hello world相关的知识,希望对你有一定的参考价值。

!  VF0944.f90 
!!  FUNCTIONS:
!    VF0944      - Entry point of console application.
!!    Example of displaying 'Hello World' at execution time.
!!****************************************************************************
!!  PROGRAM: VF0944
!!  PURPOSE:  Entry point for 'Hello World' sample console application.
!!****************************************************************************    
program VF0944    
implicit none    
integer a, b, c    
a= 8    
b= 6    
c= a*b    
print *, 'Hello World, a, b, c= ', a, b, c    
read *, a
print *, 'you input ', a
end program VF0944

以上是关于[fortran90][原创]安装fortran后的hello world的主要内容,如果未能解决你的问题,请参考以下文章

使用 NetCDF 的 R CMD SHLIB Fortran 90 文件

将 mpi 消息从 c++ 代码发送到 fortran 90 代码

将python嵌入fortran 90

Fortran 90 和 MPI 错误

英特尔 Fortran 编译器找不到模块“mpi”

无法从 Fortran 90 中返回的 C 浮点指针获取数据