fortran算术运算示例代码

代码语言:fortran

所属分类:其他

代码描述:fortran算术运算示例代码

代码标签: 算术 示例

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

program main
! this program performs arithmetic calculation
implicit none  

   ! variable declaration
   integer :: a, b, c
   
   ! assigning values 
   a = 5   
   b = 3  
   
   ! Exponentiation 
   c = a ** b 
   
   ! output 
   print *, "c = ", c
   
   ! Multiplication  
   c = a * b 
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0