i have an integer like this:1
4
3
2
1
1
3
8
1
1
1
1
1
2
1
6
2
3
1
12
what can i do to add each individual number together like this: 4+3+2+1+1+1+3+8 etc?
gibson.nathan 0 Junior Poster in Training
jmaat7 0 Light Poster
ajeet choudhary 0 Newbie Poster
cgeier 187 Junior Poster
VernonDozier 2,218 Posting Expert Featured Poster
gibson.nathan 0 Junior Poster in Training
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
gibson.nathan 0 Junior Poster in Training
VernonDozier 2,218 Posting Expert Featured Poster
gibson.nathan 0 Junior Poster in Training
santosh.garg 0 Newbie Poster
gibson.nathan 0 Junior Poster in Training
santosh.garg 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
gibson.nathan 0 Junior Poster in Training
VernonDozier 2,218 Posting Expert Featured 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.