Check a known reference value: 10! = 3628800.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_006(id, nfail) use forcolormap_utils, only: factorial integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "factorial: 10! = 3628800" logical :: ok ok = (factorial(10) == 3628800) call report_test(name, ok, id, nfail) end subroutine test_006