Example: marketing

Fortran - Tutorialspoint

Fortran i Fortran i About the Tutorial Fortran was originally developed by a team at IBM in 1957 for scientific calculations. Later developments made it into a high level programming language. In this tutorial, we will learn the basic concepts of Fortran and its programming code. Audience This tutorial is designed for the readers who wish to learn the basics of Fortran . Prerequisites This tutorial is designed for beginners. A general awareness of computer programming languages is the only prerequisite to make the most of this tutorial. Copyright & Disclaimer Copyright 2017 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher.

Fortran 9 Setting up Fortran in Windows G95 is the GNU Fortran multi-architechtural compiler, used for setting up Fortran in Windows. The windows version emulates a unix environment using MingW under windows.

Tags:

  Tutorialspoint, Fortran, Fortran 9

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Fortran - Tutorialspoint

1 Fortran i Fortran i About the Tutorial Fortran was originally developed by a team at IBM in 1957 for scientific calculations. Later developments made it into a high level programming language. In this tutorial, we will learn the basic concepts of Fortran and its programming code. Audience This tutorial is designed for the readers who wish to learn the basics of Fortran . Prerequisites This tutorial is designed for beginners. A general awareness of computer programming languages is the only prerequisite to make the most of this tutorial. Copyright & Disclaimer Copyright 2017 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher.

2 We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at Fortran ii Table of Contents About the Tutorial i Audience i Prerequisites i Copyright & Disclaimer i Table of Contents

3 Ii 1. Fortran OVERVIEW 1 Facts about Fortran 1 2. Fortran ENVIRONMENT SETUP 2 Setting up Fortran in Windows 2 How to Use G95 3 3. Fortran BASIC SYNTAX 4 A Simple Program in Fortran 4 Basics 5 Identifier 5 Keywords 6 4.

4 Fortran DATA TYPES 8 Integer Type 8 Real Type 9 Complex Type 10 Logical Type 11 Character Type 11 Implicit Typing 11 Fortran iii 5.

5 Fortran VARIABLES 12 Variable Declaration 12 6. Fortran CONSTANTS 15 Named Constants and Literals 15 7. Fortran OPERATORS 17 Arithmetic Operators 17 Relational Operators 19 Logical Operators 21 Operators Precedence in Fortran 23 8.

6 Fortran DECISIONS 26 Construct 27 else Construct 29 Statement 31 Nested If Construct 33 Select Case Construct 34 Nested Select Case Construct 37 9.

7 Fortran LOOPS 39 do Loop 40 do-while Loop 43 Nested Loops 45 Loop Control Statements 46 Exit Statement 47 Cycle Statement 48 Stop Statement 50 Fortran iv 10.

8 Fortran NUMBERS 51 Integer Type 51 Real Type 52 Complex Type 53 The Range, Precision, and Size of Numbers 55 The Kind Specifier 57 11.

9 Fortran CHARACTERS 59 Character Declaration 59 Concatenation of Characters 60 Some Character Functions 61 Checking Lexical Order of Characters 64 12. Fortran STRINGS 66 String Declaration 66 String Concatenation 67 Extracting Substrings 68 Trimming Strings 70 Left and Right Adjustment of Strings

10 70 Searching for a Substring in a String 71 13. Fortran ARRAYS 73 Declaring Arrays 73 Assigning Values 74 Some Array Related Terms 76 Passing Arrays to Procedures 76 Array Sections


Related search queries