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!

Program closing

Status
Not open for further replies.

Daichi

Programmer
Apr 2, 2009
2
BR
Hello guys, i'm new at the Fortran language, and i'm having some problems..

I made this source:

program number


print*, 'Choose the first number'
read*, i
print*, 'Choose the second number'
read*, h

if (i.GE.h) then
print*, i, ' is greater than ', h
else
print*, i, ' is not greater than ', h
end if

stop
return
end


My problem is that when the program ends, it's getting closed...

How can i fix this?
 
I forgot to tell you that i'm using force 3.0
 
Try adding a PAUSE before the stop.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top