Anonymous user
Arithmetic/Integer: Difference between revisions
m
→{{header|Fortran}}
Line 143:
In ANSI FORTRAN 77 or later:
INTEGER A, B
PRINT *, 'Type in two integer numbers separated by white space
+ ' and press ENTER'
READ *, A, B
PRINT *, ' A + B = ', (A + B)
Line 151 ⟶ 152:
PRINT *, 'MOD(A,B) = ', MOD(A,B)
PRINT *
PRINT *, 'Even though you did not ask,
+ 'exponentiation is an intrinsic op in Fortran, so...'
PRINT *, ' A ** B = ', (A ** B)
END
=={{header|Haskell}}==
|