Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int n;
- int num;
- cin >> n;
- unsigned int summ = 0;
- for (unsigned int i = 0; i < n; i++)
- {
- cin >> num;
- summ += num;
- }
- cout << summ << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement