zuhryfayesz
Programmer
my codes
soldier_of(s1,b5,100).
soldier_of(s2,b5,90).
soldier_of(s3,b5,80).
prolog command line
?-solder_of(X,b5,_).
X = s1 ;
X = s2 ;
X = s3 ;
just i want count the above result as = 3 (the answer should be = there are 3 soldiers in the base station No. 5)
please be kind enough to solve my problem bcoz i'm new to prolog programming and i can't compare and contrast your given answer to predict my answer to solve my problem
please !!!!
soldier_of(s1,b5,100).
soldier_of(s2,b5,90).
soldier_of(s3,b5,80).
prolog command line
?-solder_of(X,b5,_).
X = s1 ;
X = s2 ;
X = s3 ;
just i want count the above result as = 3 (the answer should be = there are 3 soldiers in the base station No. 5)
please be kind enough to solve my problem bcoz i'm new to prolog programming and i can't compare and contrast your given answer to predict my answer to solve my problem
please !!!!