SHARE
TWEET

Zadachka

Nimorich Sep 15th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int s, n, sum = 0;
  7.     cin >> n;
  8.     for (int i = 0; i < n; ++i)
  9.     {
  10.         cin >> s;
  11.         sum += s;
  12.     }
  13.     cout << sum;
  14.     return 0;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top