Math Department Home

Department of Mathematics

Search

Primary Menu

Skip to content
  • Welcome
  • Undergraduate
    • BA and BS programs
    • Writing-intensive
  • Graduate
    • Graduate alumni
    • Program
  • Courses
  • Research
  • People
  • Office map
  • Contact us
  • Posts
Fortran lessons

Fortran: Lesson 6

October 9, 2011 admin

Lesson topics

Initializing Variables
Mod
Subroutines
Call Statement
Return in Subroutines
Variable Substitution

View Demos
# 1 # 2 # 3 # 4
Download Demos
# 1 # 2 # 3 # 4

Demo 1

								        program moddemo
c       This program illustrates the mod function.
        integer n, m
        print *, "Enter your first positive integer :"
        read *, n
        print *, "Enter your second positive integer :"
        read *, m
        print *
        print *, "Divide", n, " by", m ," : the remainder is", mod(n,m)
        end

Post navigation

Previous PostFortran: Lesson 5Next PostFortran: Lesson 7

University of Hawaiʻi at Mānoa

Recent Posts

  • Quantum Week June 14, 2026
  • Annual awards May 9, 2026
  • Math LA’s given campuswide honors May 6, 2026
  • Chemical Reaction Networks Conference: May 17-22 May 6, 2026

Fortran lessons

  • Fortran lessons
  • Fortran: Install
  • Fortran: More
  • Fortran: Lesson 7
  • Fortran: Lesson 6
  • Fortran: Lesson 5
  • Fortran: Lesson 4
  • Fortran: Lesson 3
  • Fortran: Lesson 2
  • Fortran: Lesson 1

Resources

  • Department only
  • Faculty only
  • Placement Exam
  • UHM Mathematics Program Brochure

Useful links

  • Actuarial program
  • MathSciNet
  • MyUH etc.
  • Research links
  • Undergraduate math club
  • WebMail
  • WebWork

Social media

  • Facebook
  • LinkedIn
  • X
Powered by WordPress