Tasks 6 and 7 #6

Merged
SinusFox merged 2 commits from tasks-6-and-7 into main 2023-05-30 07:38:40 +00:00
Showing only changes of commit 8c5a52eedd - Show all commits
+16
View File
@@ -0,0 +1,16 @@
#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;
}