-
Notifications
You must be signed in to change notification settings - Fork 0
/
clear.c
38 lines (34 loc) · 1.14 KB
/
clear.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
36
37
38
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* clear.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dpetrosy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/13 05:38:29 by dpetrosy #+# #+# */
/* Updated: 2022/02/13 21:54:02 by dpetrosy ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
void clear_nums(int matrix[][5][5], int i, int j, int num)
{
int k;
k = 1;
while (k <= 4)
{
matrix[i][j][k] = 0;
++k;
}
k = 1;
while (k <= 4)
{
matrix[k][j][num] = 0;
++k;
}
k = 1;
while (k <= 4)
{
matrix[i][k][num] = 0;
++k;
}
}