Advertisement
meta1211

Untitled

Mar 27th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. int main()
  2. {
  3. int n;
  4. int num;
  5. cin >> n;
  6. unsigned int summ = 0;
  7. for (unsigned int i = 0; i < n; i++)
  8. {
  9. cin >> num;
  10. summ += num;
  11. }
  12. cout << summ << endl;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement