fork download
  1. Program Ch08_03
  2. !
  3. ! This program prints the multiplication table
  4. !
  5. implicit none
  6. Integer :: index = ' ', times
  7. print *, "What times table do you want: '
  8. read *, index
  9. print *, "Times table: '
  10. Do times = 1, index
  11. Print *, times, '*12=', times * index
  12. Endo
  13. End program Ch08_03
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:6.18:

Integer :: index = ' ', times
                  1
Error: Can't convert CHARACTER(1) to INTEGER(4) at (1)
prog.f95:7.9:

print *, "What times  table do you want: '
         1
Error: Unterminated character constant beginning at (1)
prog.f95:9.9:

print *, "Times table: '
         1
Error: Unterminated character constant beginning at (1)
prog.f95:12.5:

  Endo
     1
Error: Expecting END DO statement at (1)
prog.f95:13.7:

    End program Ch08_03
       1
Error: Expecting END DO statement at (1)
Error: Unexpected end of file in 'prog.f95'
stdout
Standard output is empty