fork(2) download
  1. character*16s
  2. read(*,*)i,j
  3. if(i-j)1,2,3
  4. 1 s=" is less than"
  5. goto4
  6. 2 s=" is equal to"
  7. goto4
  8. 3 s=" is greater than"
  9. 4 print*,i,s,j
  10. end
Success #stdin #stdout 0s 3968KB
stdin
12 2
stdout
          12  is greater than           2