hey guys!

how do i calculate the sum of a column in .csv file format using C?

e.g my fie looks like this

1, 2, 3, 4

2, 3, 4, 5

3, 4, 5, 6

(the ',' shows new cell)

how do i calculate sum of each column (desired answer is like 6,9,15)

can i do it using fscanf()? if yes, how?

thanks!