Jump to content

Arithmetic/Integer: Difference between revisions

m
Line 143:
In ANSI FORTRAN 77 or later:
INTEGER A, B
PRINT *, 'Type in two integer numbers separated by white space and press ENTER',
+ ' 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...',
+ 'exponentiation is an intrinsic op in Fortran, so...'
PRINT *, ' A ** B = ', (A ** B)
END
 
=={{header|Haskell}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.