2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ズンドコキヨシ with Fortran90

Posted at

ズンドコキヨシまとめ に触発されて、C 版 を元に Fortran90 で書いてみました。

killyoushit.f90
program killyoushit
  integer nlz, c
  nlz = 0
  c = 0
  do
    if (c .eq. 1) then
      nlz = nlz + 1
    else
      nlz = 0
    end if
    c = iand(irand(), 1)
    if (c .eq. 1) then
      print *, "ズン"
    else
      print *, "ドコ"
    end if
    if (.not. ((nlz .lt. 4) .or. (c .eq. 1))) then
      exit
    endif
  end do
  print *, "キ・ヨ・シ"
end program killyoushit
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?