Advertisement
MeehoweCK

Untitled

Oct 3rd, 2020
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int suma = 0;
  8.     int tab[10];
  9.  
  10.     for(int i = 0; i < 10; ++i)
  11.     {
  12.         cin >> tab[i];
  13.         suma += tab[i];
  14.     }
  15.     cout << "Suma podanych liczb wynosi " << suma << endl;
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement