Array Initialization and Printing Assignment Answers Needed
Your Question:
Declare a 6-by-6 integer array, initialize the array as the sum of its row index and column index and then print out the results. For example,
Step By Step Answers with Explanation
Full code in both Python and C++ to declare a 6-by-6 integer array, initialize it as the sum of its row index and column index, and print out the results:
for i in range(6):
for j in range(6):
print(array[i][j], end=' ')
print()
// Create a 6x6 integer array
int array[6][6];
}
}
}
cout << endl;