About this document
Fortran 77 Loop Structures Explained by armanimams is a document available to read on EtoBox.
The program prints the values TRUE and FALSE. The function PRIME determines if a number is prime by checking if it is divisible by any numbers from 2 to half its value. It returns TRUE if no divisors are found, FALSE otherwise. For the inputs 5 and 8, it correctly determines that 5 is prime but 8 is not.
- Author
- armanimams
- Language
- EN