This commit is contained in:
2023-10-09 14:57:48 +02:00
parent 389fe16d0a
commit 66a92b4401
3 changed files with 120 additions and 53 deletions

View File

@@ -1,37 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void) {
int tour,tour2,val;
int t1[2][5];
int t2[3][5];
int t3[5][5];
for (tour=0;tour<2;tour++){
for (tour2=1;tour2<6;tour2++)
t1[tour][tour2]=tour;
}
for (tour=0;tour<3;tour++){
for (tour2=1;tour2<6;tour2++)
val=tour+tour2;
t2[tour][tour2]=val;
}
for (tour=0;tour<5;tour++){
for (tour2=1;tour2<6;tour2++)
val=tour+tour2;
t3[tour][tour2]=val;
}
printf("+");
for (tour=0;tour<10;tour++)
printf("-----+");
printf("\n");
printf("|");
for (tour=0;tour<10;tour++)
printf("%4d |",tab_val[tour]);
printf("\n");
printf("+");
for (tour=0;tour<10;tour++)
printf("-----+");
printf("\n");
return EXIT_SUCCESS;
}