module mod1 end module module mod2 integer :: x, y integer :: z,w end module module mod3 use mod1 use mod2, only : x,y end module program myprogyo use mod3 print *, x end program |
module
mod1 end module module mod2 integer :: x, y integer :: z,w end module module mod3 use mod1 use mod2, only : x,y,w, z end module program myprogyo use mod3 print *, x end program |