大家好,最近学了fortran程式,还不是很熟,这边有个小问题要请教大家,问题如下
Write a Fortran that will read an arbitrary number of non-negative real
values and find the maximum and minimum of the input data.
To test your program, input the following data from a data file (x.txt) and use IOSTAT in
read command to determine the number of data points to be processed.
Print the number of data points and the maximum and minimum you find.
97,28,66,87,15,95,45,67,76,65,73,88,69,90,63,25,47,70,63,99,61,79,10,92,36,89
前面读数据的部分我已经解决,问题是如何读进来后如何用Max和min函数来找最大最小值@@
助教有打一些提示(?)教我们怎么找
https://imgur.com/a/OdZqTLX
https://imgur.com/a/VC6vPdo
可是这是从萤幕手动输入的写法,换成数据我就不太会了,= =还希望版上大神可以帮帮
期中快要爆炸的小弟Orz