Josif_tepe

Untitled

Nov 22nd, 2025
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.  
  5. int n,zbir=0;
  6. cin>>n;
  7. int i=1;
  8. while(i<=n){
  9.     int broj;
  10. cin>>broj;  
  11. zbir+=broj;
  12. i++;
  13. }
  14. cout<<zbir;
  15.  
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment