Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- extern "C" int sumuj(int *tab, int size);
- int main()
- {
- const int ile = 10;
- int tab[ile];
- srand(time(NULL));
- for(int i = 0; i < ile; i++)
- {
- tab[i] = rand ()%100;
- cout << tab[i] << endl;
- }
- cout << sumuj(tab, ile);
- return 0;
- }
Add Comment
Please, Sign In to add comment