Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -0,0 +1,9 @@
|
|||
:- dynamic array/2.
|
||||
|
||||
run :-
|
||||
write('Enter two positive integers, separated by a comma: '),
|
||||
read((I,J)),
|
||||
assert(array(I,J)),
|
||||
Value is I * J,
|
||||
format('a(~w,~w) = ~w', [I, J, Value]),
|
||||
retractall(array(_,_)).
|
||||
Loading…
Add table
Add a link
Reference in a new issue