A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Fizz Buzz in Fortran page! Here, you'll find the source code for this program as well as a description of how the program works.
program fizz_buzz
integer :: i
do i = 1,100
if ((modulo(i,3) == 0) .and. (modulo(i,5) == 0)) then
write (*,'(a)') "FizzBuzz"
else if (modulo(i,3) == 0) then
write (*,'(a)') "Fizz"
else if (modulo(i,5) == 0) then
write (*,'(a)') "Buzz"
else
write (*,'(I0)') i
end if
end do
end program fizz_buzz
Fizz Buzz in Fortran was written by:
If you see anything you'd like to change or update, please consider contributing.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.