Fortran provides five data types:-
  • Integer type:- It stores only the integer values.
  • Real type:- It holds the decimal point numbers such as 3.0, 2.1415, -200.587, etc.
  • Complex type:- it holds the complex numbers like (2.0, -4.0) and that equals to 2.0 – 4.0i
  • Logical type:- it stores only true and false
  • Character type:- it holds the characters and strings
BY Best Interview Question ON 03 Mar 2019