hi dave and all how follwing code could be done by for loop
From: sachin786 (sachinsb_at_cse.iitb.ac.in)
Date: 09/28/04
- Previous message: sachin786: "hi dave it is anothre one for u ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Sep 2004 07:21:03 -0400
i got it ..dave and thanks but problems like below how to solve using for
loop..and how many types of loop are there in prolog
isqrt(0,0).
isqrt(N,F) :- N>0,
N1 is N-1,
isqrt(N1,F1),
F is ((N * N * N) + F1) .
bye take care..hoping for help
- Previous message: sachin786: "hi dave it is anothre one for u ..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]