Advertisement
zrhans

write-files.f95

Oct 16th, 2014
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ! Arquivo: write-files.f95
  2. ! Autor : Hans
  3. !
  4. ! Criado em Setembro 2014, 15:11
  5.  
  6. program principal
  7.     implicit none
  8.     integer :: a,b,c
  9.  
  10.     print*,"Digite o primeiro valor e pressione enter"
  11.     read*, a
  12.  
  13.     print*,"Digite o segundo valor e pressione enter"
  14.     read*, b
  15.    
  16.     print*,"Digite o terceiro valor e pressione enter"
  17.     read*, c
  18.    
  19.     open(unit=10,file="saida.txt")
  20.     write(10,*)a,b,c
  21.     close(10)
  22.  
  23.     stop '>>>programa finalizado!'
  24. end program principal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement