Question:
I have to do a program on alternating sums using vectors. I am not sure how to start this program. I thought about using an array and every even index add the value and every odd index subtract the value. Does that sound right? Any ideas?
djbsabkcb 0 Junior Poster in Training
Rashakil Fol 978 Super Senior Demiposter Team Colleague
sifuedition 0 Light Poster
shre86 0 Light Poster
Rashakil Fol 978 Super Senior Demiposter Team Colleague
shre86 0 Light Poster
djbsabkcb 0 Junior Poster in Training
Narue 5,707 Bad Cop Team Colleague
djbsabkcb 0 Junior Poster in Training
Narue 5,707 Bad Cop Team Colleague
djbsabkcb 0 Junior Poster in Training
Narue 5,707 Bad Cop Team Colleague
djbsabkcb 0 Junior Poster in Training
Narue 5,707 Bad Cop Team Colleague
toom toom 0 Newbie Poster
Reverend Jim 4,966 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
jacklin 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.