Skip to content

Instantly share code, notes, and snippets.

@natebenes
Created March 28, 2010 00:39
Show Gist options
  • Save natebenes/346457 to your computer and use it in GitHub Desktop.
Save natebenes/346457 to your computer and use it in GitHub Desktop.
PROGRAM q1
INTEGER :: A,B,C
REAL :: X,Y,Z
A = 10
B = 20
C = 30
X = 5.0
Y = 10.0
Z = 20.0
WRITE (*,*) "1a:"
WRITE (*,*) 2* X + C - B/A
WRITE (*,*) "1b:"
WRITE (*,*) (C/A)*3**2**B/A
WRITE (*,*) "1c:"
WRITE (*,*) 4.0 - (6 + 18.0 / 3 / 3)
WRITE (*,*) "1d:"
WRITE (*,*) int(A /B*Y/Z)
END PROGRAM q1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment