Anonymous user
Integer comparison: Difference between revisions
m
→{{header|Fortran}}
Line 204:
end
In ANSI FORTRAN 77
program compare
integer a, b
Line 213:
else if (a .eq. b) then
write(*, *) a, ' is equal to ', b
else if (a .gt. b) then
write(*, *) a, ' is greater than ', b
end if
Line 219:
end
In ISO FORTRAN 90
program compare
integer :: a, b
read(*,*) a, b
Line 228:
else if (a == b) then
write(*, *) a, ' is equal to ', b
else if (a > b) then
write(*, *) a, ' is greater than ', b
end if
end program compare
=={{header|Haskell}}==
|