Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int l_testow, ile_cyfr;
- int wynik;
- cin>>l_testow;
- cin>>ile_cyfr;
- if (int i = 0; l_testow<100; i++)
- {
- int tablica[ile_cyfr];
- if (int j = 0; j<=ile_cyfr; j++)
- {
- cout<<"tablica ["<<j<<"] - " ;
- cin>>tablica[j];
- wynik += tablica[j];
- }
- }
- cout << wynik << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment