hi members...please help me about this code...the sum code is like the attachment below...
kaka_shi 0 Newbie Poster
Recommended Answers
Jump to PostIf I remember my calculas correctly (mind you its been over 35 years), problem 1 is asking you to calculate the sum of all the numbers between 0 and some maximum value, that you will probably enter from the keyboard. If that is true, your program will need an integer …
Jump to Postthank you to joeprogrammer and ancient dragon...to ancient dragon..its right just as you wrote...for the sum symbol...actually its not integer that ll be sum but its data array...
In that case, use the loop counter as index into the array
int array[255]; ... ... sum += array[i];
All 6 Replies
John A 1,896 Vampirical Lurker Team Colleague
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
kaka_shi 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
kaka_shi 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague 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.