Arrays let you store multiple values and process them with loops! Your task: Read N, then read N integers. Print their sum.
C++20 sections · 1024 units
Open in CourseChallenge: Array Sum
Traverse and accumulate
Traverse and accumulate
Arrays let you store multiple values and process them with loops! Your task: Read N, then read N integers. Print their sum.