mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 18:11:38 +00:00
Compare commits
1 Commits
f1891ba3a5
...
997d5b3e20
Author | SHA1 | Date | |
---|---|---|---|
|
997d5b3e20 |
@ -41,7 +41,7 @@ program example ! declare a program called example.
|
|||||||
real :: v, x ! WARNING: default initial values are compiler dependent!
|
real :: v, x ! WARNING: default initial values are compiler dependent!
|
||||||
real :: a = 3, b = 2E12, c = 0.01
|
real :: a = 3, b = 2E12, c = 0.01
|
||||||
integer :: i, j, k = 1, m
|
integer :: i, j, k = 1, m
|
||||||
real, parameter :: PI = 3.14159265 ! declare a constant.
|
real, parameter :: PI = 3.1415926535897931 ! declare a constant.
|
||||||
logical :: y = .TRUE., n = .FALSE. ! boolean type.
|
logical :: y = .TRUE., n = .FALSE. ! boolean type.
|
||||||
complex :: w = (0, 1) ! sqrt(-1)
|
complex :: w = (0, 1) ! sqrt(-1)
|
||||||
character(len=3) :: month ! string of 3 characters.
|
character(len=3) :: month ! string of 3 characters.
|
||||||
|
Loading…
Reference in New Issue
Block a user