Register to reply

Simple program in Fortran, I get an error

by fluidistic
Tags: error, fortran, program, simple
Share this thread:
Dec22-09, 07:44 PM
PF Gold
fluidistic's Avatar
P: 3,188
It's not an assignment. Rather I'm trying to learn back some fortran.
I've found a website with some simple problems to do, that's where I got this one. See the first problem of this page :

Here's my program :
Program vasy
implicit none

Integer :: C
Real :: F

do while (C<=100)

end do

end program vasy

Here's the error I'm getting : "
Error: Unclassifiable statement at (1)
I know I didn't have to set F=0, but I tried several things in case the error was there... I can't get rid of the problem. My compiler is goftran and I'm under Ubuntu.
Phys.Org News Partner Science news on
Wildfires and other burns play bigger role in climate change, professor finds
SR Labs research to expose BadUSB next week in Vegas
New study advances 'DNA revolution,' tells butterflies' evolutionary history
Dec22-09, 08:48 PM
PF Gold
fluidistic's Avatar
P: 3,188
Nevermine, I just saw my problem. I had to write a=a+1 instead of just a+1.

Now I'm getting a permission denied when executing the program, but I think I'll solve it.
Thanks anyway!

Register to reply

Related Discussions
Simple fortran error Programming & Computer Science 2
Need help about FORTRAN program Mechanical Engineering 7
Running a Fortran 77 program in a C++ enviorment/program Programming & Computer Science 2
Fortran error Programming & Computer Science 33
Help with simple Fortran program Programming & Computer Science 1