-3
I need to know what a program would look like to print an array the same way below, where the bottom line will always subtract 1 from the top number. I really tried to make a code but didn’t know where to start, so I came to ask for a help here.
6 5 4 3 \\ Caso o usuário digite 4 linhas
5 4 3 2
4 3 2 1
3 2 1 0
4 3 2 \\ Caso o usuário digite 3 linhas
3 2 1
2 1 0
2 1 \\ Caso o usuário digite 2 linhas
1 0
Put the code to print the matrix with the zeroed values, so we can help you without doing all the work.
– HwapX
But in a few words each value corresponds to subtraction of the current row and column (starting at 1) from twice the total lines.
– HwapX
But the matrix is all provided by the user ? Or the user provides only the first value and size ?
– Isac
Whoa, guys. Thank you so much for trying to help!
– Pedro Mateus