Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- void cartesian(int array[],int arraySize)
- {
- for (int i = 0; i < arraySize; i++)
- {
- for (int y = 0; y < arraySize; i++)
- {
- cout << array[i] * array[y] << " ";
- }
- }
- }
- int main()
- {
- int arraySize;
- cin >> arraySize;
- int array[100];
- for (int i = 0; i < arraySize; i++)
- {
- cin >> array[i];
- }
- cartesian(array, arraySize);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement