program errors c c John Mahaffy, Penn State University, CmpSc 201 Example c 1/26/96 c c c This program has several errors related to poor location of statements c c 1 2 3 4 5 6 7 c23456789012345678901234567890123456789012345678901234567890123456789012 c print *, ' You will frequently run into problems fitting your output' print *, 'This statement is OK, but tripped up by the next one' a=1 b = a+3.2 c c The next 2 Fortran statements give no syntax errors, but result in c unexpected results. The second is considered a continuation of the c first with the net result that "c=3.0*b+4.1" and d is not evaluated c c= 3.0*b d=c+4.1 c c The next line won't give a syntax error, but also won't print a value c for d c print *, 'This will not trigger a syntax message but doesnt work' ,d stop end