Hello! I need to write a very simple c++ program that does the following and I c
ID: 3570025 • Letter: H
Question
Hello! I need to write a very simple c++ program that does the following and I cannot figure out the logic:
so I have an array, size [4][4]. let's call it array[4][4]. I need to fill up all of it's elements with EVERY POSSIBLE COMBINATION of numbers 1-4.
For example:
0 0 0
0 0 0
0 0 1
then
0 0 0
0 0 0
0 0 2
but when the last spot gets to 4, it resets to zero then we'll see
0 0 0
0 0 0
0 1 0
then it keeps going
0 0 0
0 0 0
0 1 1
I hope you can follow, eventually the final output, way later, will look like:
4 4 4
4 4 4
4 4 4