I found the following program in a textbook and I don't understand how logical variables are used for the sorting function. I understand that variables is supposed to tell the program to keep functioning until the sorting is complete, I just don't understand the specifics. The logical variable...
I tried doing using a counting loop using "a" as the stop variable but it didn't work, I think I need iostat to tell the program to stop reading the file. The problem with my program is that it shows a number that is 111.34 in the text as 111.339996.
Thank you for the reply. I wanted to make my question general because, I don't want it to seem like I'm asking for answers. That's why I didn't post all the code. This is the program code
PROGRAM money
IMPLICIT NONE
REAL::array1(50,3)
integer::a
INTEGER:: c1=0,c2=0
INTEGER...
I'm trying to input a .txt file with a variable number of rows and 3 columns into an array. The first row is just a single number expressing the remaining number of rows. so we have something like this
3
3 5.12 3
5.3 3 5
4 3 4
All the individual numbers are separated by spaces. So far...