Question: Question: Simple example of a Function Using Fortran 90 Write a main program and an internal function that takes two REAL arguments and returns the

Question: Simple example of a Function

Using Fortran 90

Write a main program and an internal function that takes two REAL arguments and returns the second argument subtracted from the first. Keep the code as simple as possible. Test this by including calls to add the following pairs of numbers: 1.23 4.56 -7.89 3.42 4.29 -0.98 1.2 Add INTENT and ELEMENTAL to the above code and check that it works. 1.3 Change the call to using keywords and reverse the order of the arguments; check that this does not change the results.

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!