Arithmetic/Integer: Difference between revisions

Line 141:
 
=={{header|Fortran}}==
In ANSI FORTRAN 77 or later:
REAL A, B
PRINT *, "Type in two numbers separated by white space and press ENTER"
READ *, A, B
PRINT *, " A + B = ", (A+B)
PRINT *, " A - B = ", (A-B)
PRINT *, " A * B = ", (A*B)
PRINT *, " A / B = ", (A/B)
PRINT *, "A ** B = ", (A**B)
 
=={{header|Haskell}}==
Anonymous user