Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/User-input-Text/Logtalk/user-input-text-1.logtalk
Normal file
16
Task/User-input-Text/Logtalk/user-input-text-1.logtalk
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
:- object(user_input).
|
||||
|
||||
:- public(test/0).
|
||||
test :-
|
||||
repeat,
|
||||
write('Enter an integer: '),
|
||||
read(Integer),
|
||||
integer(Integer),
|
||||
!,
|
||||
repeat,
|
||||
write('Enter an atom: '),
|
||||
read(Atom),
|
||||
atom(Atom),
|
||||
!.
|
||||
|
||||
:- end_object.
|
||||
4
Task/User-input-Text/Logtalk/user-input-text-2.logtalk
Normal file
4
Task/User-input-Text/Logtalk/user-input-text-2.logtalk
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
| ?- user_input::test.
|
||||
Enter an integer: 75000.
|
||||
Enter an atom: 'Hello world!'.
|
||||
yes
|
||||
Loading…
Add table
Add a link
Reference in a new issue