new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
11
Task/FizzBuzz/Fortran/fizzbuzz-1.f
Normal file
11
Task/FizzBuzz/Fortran/fizzbuzz-1.f
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
program fizzbuzz_if
|
||||
integer :: i
|
||||
|
||||
do i = 1, 100
|
||||
if (mod(i,15) == 0) then; print *, 'FizzBuzz'
|
||||
else if (mod(i,3) == 0) then; print *, 'Fizz'
|
||||
else if (mod(i,5) == 0) then; print *, 'Buzz'
|
||||
else; print *, i
|
||||
end if
|
||||
end do
|
||||
end program fizzbuzz_if
|
||||
Loading…
Add table
Add a link
Reference in a new issue