⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex1101.f90

📁 Fortran 95程序设计【彭国伦】第11章
💻 F90
字号:
module bank
  implicit none
  private money
  public  LoadMoney, SaveMoney, Report
  integer :: money = 1000000
contains
  subroutine LoadMoney(num)
    implicit none
	integer :: num
	money=money-num
	return
  end subroutine
  
  subroutine SaveMoney(num)
    implicit none
	integer :: num
    money=money+num
    return
  end subroutine

  subroutine Report()
    implicit none
    write(*,"('银行目前库存',I,'元')") money
  end subroutine
end module

program ex1101
  use bank
  implicit none
  call LoadMoney(100)
  call SaveMoney(1000)
  call Report()
  stop
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -