1.write A Program in Prolog To Show The Sum of N Natural Numbers. Code
1.write A Program in Prolog To Show The Sum of N Natural Numbers. Code
1.write A Program in Prolog To Show The Sum of N Natural Numbers. Code
Code:-
summation:-
write("enter the limit:"),read(N),
R is (N+1)*N/2,
write("sum of N natural number is:"),write(R).