program io_basic
implicit none
integer :: n
real :: x
character(len=50) :: name
print *, "Enter your name, an integer, and a real:"
read *, name, n, x ! list-directed input (spaces/commas separate values)
print *, "Hello ", trim(name), n, x
write(*, *) "Same as print *"
end program io_basic