<div class="notebook"> <div class="nb-cell program" name="p1"> pricingwithgst(Price, GST, EXGST) :- GST is Price / 11, EXGST is Price - GST. </div> <div class="nb-cell query" name="q1"> pricingwithgst(110, GST, EXGST). </div> <div class="nb-cell query" name="q2"> pricingwithgst(Price, GST, 100). </div> <div class="nb-cell program" data-background="true" name="p2"> pricingwithgst2(Price, GST, EXGST) :- ground(Price), GST is Price / 11, EXGST is Price - GST. pricingwithgst2(Price, GST, EXGST) :- ground(EXGST), GST is EXGST / 10, Price is EXGST + GST. </div> <div class="nb-cell query" name="q3"> pricingwithgst2(110, GST, EXGST). </div> <div class="nb-cell query" name="q4"> pricingwithgst2(Price, GST, 100). </div> </div>