fork download
  1. read(*,*)i
  2. b=mod(i,2)
  3. if(b.eq.0) then
  4. write(*,*)'Even no.',i
  5. else
  6. write(*,*)'Odd no.',i
  7. endif
  8. stop
  9. end
  10.  
Success #stdin #stdout 0.01s 5460KB
stdin
3
stdout
 Odd no.           3