Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int tab[10];
- for(int i = 0; i < 10; i++) {
- tab[i] = rand() % 21 - 10;
- }
- for(int i = 0; i < 10; i++) {
- cout << "TAB[" << i << "] = " << tab[i] << "\n";
- }
- return 0;
- }
- /////////////////////////////////////////////////////////////////
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int tab[10];
- for(int i = 0; i < 10; i++) {
- tab[i] = rand() % 21 - 10;
- cout << "TAB[" << i << "] = " << tab[i] << "\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement