Advertisement
Josif_tepe

Untitled

Mar 13th, 2023
913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.     int i = 0;
  5.     int zbir = 0;
  6.     while(i < 100) {
  7.         int broj;
  8.         cin >> broj;
  9.         zbir += broj;
  10.     }
  11.     cout << zbir << endl;
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement