PROGRAM BALANCE
! Calculates balance after interest compounded
REAL BALANCE, INTEREST, RATE
BALANCE = 1000
RATE = 0.09
INTEREST = RATE * BALANCE
BALANCE = BALANCE + INTEREST
PRINT*, 'New balance:', BALANCE
END PROGRAM BALANCE
выдает такое
gfortran-7 balance.f
balance.f:1:1:
PROGRAM BALANCE
1
Error: Non-numeric character in statement label at (1)
balance.f:1:1:
PROGRAM BALANCE
1
Error: Unclassifiable statement at (1)
balance.f:3:1:
REAL BALANCE, INTEREST, RATE
1
Error: Non-numeric character in statement label at (1)
balance.f:3:1:
REAL BALANCE, INTEREST, RATE
1
Error: Unclassifiable statement at (1)
balance.f:4:1:
BALANCE = 1000
1
Error: Non-numeric character in statement label at (1)
balance.f:5:1:
RATE = 0.09
1
Error: Non-numeric character in statement label at (1)
balance.f:6:1:
INTEREST = RATE * BALANCE
1
Error: Non-numeric character in statement label at (1)
balance.f:7:1:
BALANCE = BALANCE + INTEREST
1
Error: Non-numeric character in statement label at (1)
balance.f:8:1:
PRINT*, 'New balance:', BALANCE
1
Error: Non-numeric character in statement label at (1)
balance.f:8:1:
PRINT*, 'New balance:', BALANCE
1
Error: Unclassifiable statement at (1)
balance.f:9:1:
END PROGRAM BALANCE
1
Error: Non-numeric character in statement label at (1)
balance.f:9:1:
END PROGRAM BALANCE
1
Error: Unclassifiable statement at (1)
f951: Error: Unexpected end of file in ‘balance.f’
какой fortran установить чтоб оно работало?