Hello,
I just want to know If it's a way to print the Ok.
I cant understand why it doesnt show up.
---------------------------------------------------------
testpass(test,test,blue,ten,zer,ben).
start:- write('username:'),
read(A),nl,
write('password :'),
read(B),nl,
number(0).
number(0):-
writeln('Favourite colour:'),
read(C),
testpass(Dbusername,Dbpassword,Colour,_,_,_),
A==Dbusername,
B==Dbpassword,
C==Colour,
write('Ok').
-----------------------------------------------------------
1 ?- start.
username:test.
password :test.
true.
-----------------------------------------------------------
Thanks
I just want to know If it's a way to print the Ok.
I cant understand why it doesnt show up.
---------------------------------------------------------
testpass(test,test,blue,ten,zer,ben).
start:- write('username:'),
read(A),nl,
write('password :'),
read(B),nl,
number(0).
number(0):-
writeln('Favourite colour:'),
read(C),
testpass(Dbusername,Dbpassword,Colour,_,_,_),
A==Dbusername,
B==Dbpassword,
C==Colour,
write('Ok').
-----------------------------------------------------------
1 ?- start.
username:test.
password :test.
true.
-----------------------------------------------------------
Thanks