Advertisement
MeehoweCK

Untitled

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