| Refresh | Home EGTry.com

primitive type literal



integer

1
0
-100
+123



real

3.14
0.112
4.0
-4.5
1.3e+2
1.1e-10



double precision

1.3d+2
1.1d-10



complex

(1,2)
(1.1,2)
(1.1e+4,3.4e-2)



logical

.true.
.false.



character

'a'
'hello world'
'he said, "hello"'
'he said, ''hello'''



parameter (constant declaration)

parameter(pi=3.14, max=100)