NAG Library Manual, Mark 30.1
```    Program f01dtfe

!     F01DTF Example Program Text

!     Mark 30.1 Release. NAG Copyright 2024.

!     .. Use Statements ..
Use nag_library, Only: f01dtf, nag_wp, x04daf
!     .. Implicit None Statement ..
Implicit None
!     .. Parameters ..
Integer, Parameter               :: nin = 5, nout = 6
!     .. Local Scalars ..
Complex (Kind=nag_wp)            :: alpha, beta
Integer                          :: i, ifail, lda, ldb, ldc, n
Logical                          :: lta, ltb, lu
Character (1)                    :: transa, transb, uplo
!     .. Local Arrays ..
Complex (Kind=nag_wp), Allocatable :: a(:,:), b(:,:), c(:,:)
!     .. Executable Statements ..
Write (nout,*) 'F01DTF Example Program Results'

!     Skip heading in data file
Write (nout,*)
Flush (nout)

!     Values for uplo, transa, transb

lu = (uplo=='U')
lta = (transa=='N')
ltb = (transb=='N')

!     Order of square matrices
lda = n
ldb = n
ldc = n

!     Scaling constant alpha

!     Allocate memory for local arrays
Allocate (a(n,n),b(n,n),c(n,n))

!     Read input matrix A from data file
If (lu .Eqv. lta) Then
Else
End If

!     Read input matrix B from data file
If (lu .Eqv. ltb) Then
Else
End If

!     Read input matrix C from data file

!     ifail: behaviour on error exit
!           = 0 for hard exit, =1 for quiet-soft, =-1 for noisy-soft
ifail = 0

!     Compute the triangular matrix product and update C
Call f01dtf(uplo,transa,transb,n,alpha,a,lda,b,ldb,beta,c,ldc,ifail)

!     Print the solution
If (ifail==0) Then
ifail = 0
Call x04daf('G','N',n,n,c,n,'Solution matrix C',ifail)
End If

End Program f01dtfe
```