Basic Programming Topic Set 6-3 Simple Summation (10 points)

Hits: 0

Problem Description:

Problem solving ideas:

Simple basic questions, just traverse it from beginning to end

Problem solving code:

int Sum ( int List[], int N ){
    int ans = 0;
    for(int i = 0; i < N; i++)
        ans += List[i];
    return ans;
}

You may also like...

Leave a Reply

Your email address will not be published.