A variable is just like a container that contains a specific value. The memory chunk, that a particular variable occupies, has a specific name called the variable name.
In Fortran:
Fortran provides five intrinsic data types. However, we can derive our own data types as well.
Following are a few data types of variables in Fortran:
Following is the syntax for declaring a variable:
integer :: age age = 25
Program print integer :: age age = 90 Print *, "Output:", age End Program print
age
.age
, with a value of 90
.age
, on the console.RELATED TAGS
CONTRIBUTOR
View all Courses