zuhryfayesz
Programmer
///// b5 refers to base station No. 5
///// s1, s2, s3 refers to the soldiers connected to the base station No. 5
soldier_of(s1,b5,100).
soldier_of(s2,b5,90).
soldier_of(s3,b5,80).
ignore the connected distance in numbers
i typed solder_of(X,b5,_). in prolog command line and i got the below . connected soldier to the basse station No. 5
X = s1 ;
X = s2 ;
X = s3 the result i'm expecting was
no of soldier = 3
urgent please!!!!! i was about to submit my course 2morow !!!
///// s1, s2, s3 refers to the soldiers connected to the base station No. 5
soldier_of(s1,b5,100).
soldier_of(s2,b5,90).
soldier_of(s3,b5,80).
ignore the connected distance in numbers
i typed solder_of(X,b5,_). in prolog command line and i got the below . connected soldier to the basse station No. 5
X = s1 ;
X = s2 ;
X = s3 the result i'm expecting was
no of soldier = 3
urgent please!!!!! i was about to submit my course 2morow !!!