Date: Mon, 11 Nov 1996 17:19:17 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Mon, 16 Sep 1996 18:51:54 GMT Content-length: 17163 CS 110 Section 2 Lecture Notes - Week 2

Lecture Notes - Week 2


Topic:
Program structure. Constants and variables. Arithmetic expressions. The assignment statement. Built-in functions. Unformatted input and output. Errors.
Text:
Chp. 2.1 - 2.8
Notes:

Fortran Line Structure

Comment Field

Continuation Marker

FORTRAN Statements


FORTRAN Program Structure

Program Header

STOP

END


FORTRAN Variables

Variable Names

Variable Types

Variable Declarations

Constants


Assignment Statement


Arithmetic Expressions

Aritmetic Operators

Operator Precedence

Arithmetic Functions

Type Matching

REAL Numbers

Rounding Errors

CHARACTER Strings


Input and Output

Unformatted Output

Unformatted Input

Reading CHARACTER Strings

Types of Errors


Copyright © 1996 Modified from Gareth S. Bestor (bestor@cs.wisc.edu). Last modified September 16, 1996.