Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int niza[5];
- niza[0] = 10;
- niza[1] = 20;
- niza[2] = 30;
- niza[3] = 40;
- niza[4] = 50;
- int zbir = 0;
- for(int i = 0; i < 5; i++) {
- zbir += niza[i];
- }
- cout << zbir << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement