Header Ads

Write code for the following function using CLIPS and show the output in CLIPS IDE.

Write code for the following function using CLIPS and
show the output in CLIPS IDE.
 

( + 9 3 5)                                                                    
(* 5 5.5 5)       
( + 5 ( *  8  8) 2 )  
(* 8 (+ 3 (* 2 3) 4) (* 9 9)) 
(+ 2 3(- 4 2))   

Solution:

(+ 9 3 5)

(printout t (+ 9 3 5) crlf)

(* 5 5.5 5)

(printout t (* 5 5.5 5) crlf)

(+ 5 (* 8 8) 2 )

(printout t (+ 5 (* 8 8) 2 ) crlf)

(* 8 (+ 3 (* 2 3) 4) (* 9 9))

(printout t (* 8 (+ 3 (* 2 3) 4) (* 9 9)) crlf)

(+ 2 3 (- 4 2))

(printout t (+ 2 3 (- 4 2)) crlf)


No comments

Powered by Blogger.