Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding corresponding value of a variable based on another

Status
Not open for further replies.

Parth09

Programmer
Jun 24, 2019
2
IN
Hi.
I am new to the FORTRAN Programming and trying to write a program.
in a table, there are two columns with values for two variables.
I could write a code to find max value of one of the variable but how do I find the corresponding value of the second variable where the valur of the first variable is max? Thanks for your help.
 
What have you done so far? Show us what you've done and someone may be able to help you.
 
hi xwb,


open(unit=9,file='sca1.out',status='old')
41 read(9,*,end=919)ri,vi,D1,H1

vmax=max(vi,vlast)
vlast=vmax
go to 41

I need value of ri at each Vmax. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top