Guest User

Program C++

a guest
Apr 22nd, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int l_testow, ile_cyfr;
  8.     int wynik;
  9.     cin>>l_testow;
  10.     cin>>ile_cyfr;
  11.  
  12.     if (int i = 0; l_testow<100; i++)
  13.         {
  14.         int tablica[ile_cyfr];
  15.  
  16.         if (int j = 0; j<=ile_cyfr; j++)
  17.         {
  18.             cout<<"tablica ["<<j<<"] - " ;
  19.             cin>>tablica[j];
  20.             wynik += tablica[j];
  21.         }
  22.         }
  23.     cout << wynik << endl;
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment