How to manupilate list of numbers with arithmetic operators?

前端 未结 0 1249
隐瞒了意图╮
隐瞒了意图╮ 2021-01-01 19:55

I writed prolog like that

     add().
     mult().
     subs().
     div().


%rules

add(X,Y,Z):- Z is X+Y. 

mult(X,Y,Z):-   Z is         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题