Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Arithmetic-Integer/Fortran/arithmetic-integer.f
Normal file
14
Task/Arithmetic-Integer/Fortran/arithmetic-integer.f
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
INTEGER A, B
|
||||
PRINT *, 'Type in two integer 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 *, '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
|
||||
Loading…
Add table
Add a link
Reference in a new issue