Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Prva zadacha

ZivkicaI Apr 3rd, 2020 241 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, i, niza[20], suma=0;
  8.     cout<<"Vnesi broj na elementi vo nizata"<<endl;
  9.     cin>>n;
  10.     cout<<"Vnesi ja nizata"<<endl;
  11.     for(i=0; i<n; i++)
  12.     {
  13.         cin>>niza[i];
  14.     }
  15.     for(i=0; i<n; i++)
  16.     {
  17.        suma+=niza[i];
  18.     }
  19.     cout<<"Sumata na elementite vo nizata e: "<<suma<<endl;
  20.     return 0;
  21. }
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
Top