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.
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, with a value of
age, on the console.
View all Courses