fortran怎样输入复数?比如3+2i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/05 07:59:36
fortran怎样输入复数?比如3+2ifortran怎样输入复数?比如3+2ifortran怎样输入复数?比如3+2iProgram www_fcode_cn  Imp

fortran怎样输入复数?比如3+2i
fortran怎样输入复数?比如3+2i

fortran怎样输入复数?比如3+2i
Program www_fcode_cn
  Implicit None
  Complex :: c
  Read( * , * ) c
  write( * , * ) c
End Program www_fcode_cn


如果是类似上面的代码,那么输入 (3,2) 既可