Arithmetic/Integer: Difference between revisions
Content added Content deleted
Line 141: | Line 141: | ||
=={{header|Fortran}}== |
=={{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}}== |
=={{header|Haskell}}== |