EXAMPLE PROGRAMS F Revision 29/05/2019 Recursion Examples Highest Common Factor, HCF (aka Greatest Common Divisor, GCD) recursive integer function hcf( a, b ) result( answer ) implicit none integer, intent(in) ...
Filetype PDF | Posted on 03 Feb 2023 | 2 years ago
The words contained in this file might help you see if this file matches what you are looking for:
...Example programs f revision recursion examples highest common factor hcf aka greatest divisor gcd recursive integer function a b result answer implicit none intent in if then base case else modulo end program test external print input read is main call convert to binary module binarymodule contains n character len allocatable note variable length digit lower bound high not found middle low value binarysearch upper binarysearchmodule use pos write array i x advance no enter size search full range at position couldn t find fortran part david apsley sum of digits sumdigits single number reverse word subroutine text l r inout c swap ends parameter fmt some trim reversed sieve eratosthenes primes logical isprime imax allocate true sqrt do false prime numbers are...