fork download
  1. read(*,*)i
  2. if(i.gt.1) then
  3. go to 20
  4. else
  5. go to 10
  6. endif
  7. 20 j=i-1
  8. go to 2
  9. 1 c=mod(i,j)
  10. if(c.gt.o) then
  11. j=j-1
  12. go to 2
  13. else
  14. write(*,*)'compiste no.'
  15. endif
  16. go to 10
  17. 2 if(j.gt.1) then
  18. go to 1
  19. else
  20. write(*,*)'prime no.'
  21. endif
  22. 10 write(*,*)'work done'
  23. stop
  24. end
Success #stdin #stdout 0.01s 5516KB
stdin
1
stdout
 work done