Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simple program in Fortran, I get an error

  1. Dec 22, 2009 #1


    User Avatar
    Gold Member

    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 : http://www.chem.ox.ac.uk/fortran/.

    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.
  2. jcsd
  3. Dec 22, 2009 #2


    User Avatar
    Gold Member

    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!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook