graphprogram/matrix.c
2024-09-26 14:32:20 +02:00

12 lines
420 B
C

#include <stdint.h>
#include <stdio.h>
void print_matrix(const uint8_t row_length, const uint8_t column_length, const uint64_t matrix[row_length][column_length]) {
for (uint8_t column_index=0; column_index < column_length; column_index++) {
for (uint8_t row_index=0; row_index < row_length; row_index++) {
printf("%lu ", matrix[row_index][column_index]);
}
printf("\n");
}
}