RosettaCodeData/Task/Arithmetic-Integer/Prolog/arithmetic-integer-2.pro

11 lines
126 B
Prolog
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
?- arithmetic_integer.
|: 5.
|: 7.
5+7 is 12
5-7 is -2
5*7 is 35
5//7 is 0
5 rem 7 is 5
5^7 is 78125
true.