|
Hi I need help in vectors. When I run my program on the terminal i get Crop (kg) yr1-150 yr2-200 yr3-450 yr4-220 yr5-554 but it shows ten of the weights using a vector. So im using a vector to print out a 10 years of crop weight.
But my problem is how would i be able add all the values in that vector (the weights). Thanks
|