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!

exit in FORTRAN 1

Status
Not open for further replies.

shalinibasu82

Programmer
Mar 20, 2008
4
US
Hello,

I am new to FORTRAN. Could some please give a URL for tutorial of this language?
Additionally, would really appreciate if someone could tell me a command and its syntax in FORTRAN similar to exit(0) or exit(1) in C?

Thanks a lot.
Shalini.
 
Re: exits - there is no standard one in Fortran. It depends on which version you're using.

There may be a CALL EXIT(1). STOP is the same as exit(0) in C.
 
In google search itself u can get simple and easy tutorials for Fortran .I used those only.

Regardin exit codes u can use STOP 6 .
The above code will stop the program with exit code 6. Similarly u can use any number such as 0 or 1 depending upon ur requirement while stopping the program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top