Question: Hello I have written the program but it did not work. Please write the following program in order for me to cross check with mine.

Hello I have written the program but it did not work. Please write the following program in order for me to cross check with mine. Thank you,

With Fortran, 5 is stdin and 6 is stdout. You can assign the numbers to files. The following sample Fortran Program reads in the number of values

Program PrintNums

Integer :: Number, Value, Counter

Open(Unit=5, File='/uploads/input.txt', Access='SEQUENTIAL')

Read *, Number

Do Counter = 1, Number

Read *, Value

Print *, Value

End Do

Close(5)End Program PrintNums

NOTE: You can easily define an array via: Integer :: ary(99)It will start at 1 and go up to 99

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!