sum problem

Discussions related to Visual Prolog
NickyVDig
Posts: 1
Joined: 2 Jan 2016 8:42

Problem with external database f

Unread post by NickyVDig » 8 Jan 2016 20:16

Hi i have problem with sum.I have to take data from file txt:
3
2 15 41
4 1 2 3 4
3 22 11 24

with these numbers i have to do:

1/15 1/41 = sum1
1/1 1/2 1/3 1/4 = sum2
1/22 1/11 1/24 = sum3

total=1/sum11/sum21/sum3

my code:

Code:

Post Reply