   g95-error: unclassifiable statement
  Hello!I wanted to compile following easy program:program prim! Testet, ob eine gegebene Zahl priminteger :: kandidat, teiler, restkandidat = 7099do teiler = 2, kandidat - 1    rest = MOD(kandidat, teiler)    if (rest == 0) THEN   write(*,*)kandidat, ' ist nicht Teiler'   teiler, 'ist ein Teiler'   stop    end ifend dowrite(*,*)kandidat, 'ist prim.'stopend program prim   It is about testing if a number is a prime number or not.The following error appeared:Error: Unclassifiable statement at (1)What is wrong? Why is "teiler" not classifiable, even though I write: teiler=2?I would be very happy if anybody could help me.Thanks a lotand best wishes from Germany,Theresa[By the way, please use [code][/code] (short samples) or [source][/source] (long samples) tags as appropriate to post code. That way, indentation will be preserved.][Edited by - Zahlman on May 19, 2009 11:21:48 AM]
  It would help to say what language you're using, rather than just what compiler. I had to look that up to figure out that it's Fortran. Very few people use Fortran these days outside of university researchers :)   ;  Yay, Fortran! ♥Looks to me like your line continuation in the write statement isn't correct. Try adding , & after the ' ist nicht Teiler' and before the newline, like so:program prim! Testet, ob eine gegebene Zahl priminteger :: kandidat, teiler, restkandidat = 7099do teiler = 2, kandidat - 1    rest = MOD(kandidat, teiler)    if (rest == 0) THEN   write(*,*)kandidat, ' ist nicht Teiler', &   teiler, 'ist ein Teiler'   stop    end ifend dowrite(*,*)kandidat, 'ist prim.'stopend program prim   