This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
University-Technical_Progra…/7_Matrix_1x1/7_Matrix_1x1.c
T
SinusFox 8c5a52eedd task 7
2023-05-30 09:37:47 +02:00

17 lines
420 B
C

#include <stdio.h>
int main() {
// setting the end of the array
int upTo = 20;
// printing the values as matrix
for (int i = 1; i <= upTo; i++) { // y axis
for (int j = 1; j <= upTo; j++) { // x axis
printf("%5i", (i*j)); // printing each value, i*j = the value
}
printf("\n"); // end of line on x axis
}
return 0;
}