I have installed a Fortran Package to ATOM Editor and I´m having trouble with the READ command, because apperantly ATOM doesn´t open an interactive terminal to enter a data for READ command!
A HelloWorld program works properly!
PROGRAM HELLOWORLD
PRINT *, ‘Hello, world!’
END
! Works fine
A ReadName program doesn´t work!
PROGRAM READNAME
PRINT *, 'Enter your name: ’
READ *, NAME
PRINT *, 'Your name is: ', NAME
END
! The program print: "Enter your name: " in a field at the bottom of ATOM Editor, but I can´t type anything the program accept!
An equivalent program written in C works properly:
#include <stdio.h>
int main() {
char str[100];
printf ("Enter your name: ");
gets (str);
printf (\n Your name is: ");
puts (str);
return 0;
} /* Open a Windows Terminal, and works fine! */