Home Whiteboard Graphing Calculator Online Compilers Articles Tools

Explore Categories

Find the perfect tutorial for your learning journey

Python TechnologiesDatabasesComputer ProgrammingWeb DevelopmentJava TechnologiesComputer ScienceMobile DevelopmentBig Data & AnalyticsMicrosoft TechnologiesDevOpsLatest TechnologiesMachine LearningDigital MarketingSoftware QualityManagement Tutorials View All Categories
Tutorials Courses Jobs Login
Fortran Tutorial
  • Fortran - Home
  • Fortran - Overview
  • Fortran - Environment Setup
  • Fortran - Basic Syntax
  • Fortran - Data Types
  • Fortran - Variables
  • Fortran - Constants
  • Fortran - Operators
  • Fortran - Decisions
  • Fortran - Loops
  • Fortran - Numbers
  • Fortran - Characters
  • Fortran - Strings
  • Fortran - Arrays
  • Fortran - Dynamic Arrays
  • Fortran - Derived Data Types
  • Fortran - Pointers
  • Fortran - Basic Input Output
  • Fortran - File Input Output
  • Fortran - Procedures
  • Fortran - Modules
  • Fortran - Intrinsic Functions
  • Fortran - Numeric Precision
  • Fortran - Program Libraries
  • Fortran - Programming Style
  • Fortran - Debugging Program
  • Fortran - Quick Guide
  • Fortran - Useful Resources
  • Fortran - Discussion
Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Online Resume Builder
  • HR Interview Questions
  • Computer Glossary
  • Who is Who
Home Fortran Fortran - Stop Statement

Fortran - Stop Statement



Previous
Quiz
Next

If you wish execution of your program to cease, you can insert a stop statement.

Example

program stop_example     
implicit none

   integer :: i     
   do i = 1, 20          
   
      if (i == 5) then 
         stop          
      end if         
      
      print*, i      
   end do  
   
end program stop_example

When the above code is compiled and executed, it produces the following result −

1
2
3
4
fortran_loops.htm
Previous Quiz Next
Advertisements
  • ABOUT US
  • OUR TEAM
  • CAREERS
  • JOBS
  • CONTACT US
  • TERMS OF USE
  • PRIVACY POLICY
  • REFUND POLICY
  • COOKIES POLICY
  • FAQ'S
tutorials point logo
Download Android App Download IOS App

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on technical and non-technical subjects.

Copyright 2026. All Rights Reserved.