program moddemo
c This program illustrates the mod function.
integer n, m
print *, "Enter your first positive integer :"
read *, n
print *, "Enter your second positive integer :"
read *, m
print *
print *, "Divide", n, " by", m ," : the remainder is", mod(n,m)
end