-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprint.c
35 lines (32 loc) · 1.16 KB
/
print.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sinlee <sinlee@student42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/01 15:17:10 by sinlee #+# #+# */
/* Updated: 2023/04/02 12:22:39 by sinlee ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void print_criteria(int arr[4][4])
{
int i;
int j;
char ans;
i = -1;
while (++i < 4)
{
j = -1;
while (++j < 3)
{
ans = arr[i][j] + 48;
write(1, &ans, 1);
write(1, " ", 1);
}
ans = arr[i][j] + 48;
write(1, &ans, 1);
write(1, "\n", 1);
}
}