Question: How do I display the sum of the values of a six element vector?

Given a vector with six elements called, say, c, how do I assign the sum of its values to a name called d without having to write d=c[1]+c[2]...?

Thanks in advance.

Please Wait...