-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow_int_tab.c
executable file
·33 lines (30 loc) · 1.09 KB
/
show_int_tab.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* show_int_tab.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mberger <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/03/25 11:22:19 by mberger #+# #+# */
/* Updated: 2015/03/25 12:20:01 by mberger ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void show_int_tab(int **tab, int x, int y)
{
int i;
int j;
i = 0;
while (i < y)
{
j = 0;
while (j < x)
{
ft_putnbr(tab[i][j]);
ft_putchar(' ');
j++;
}
ft_putendl("");
i++;
}
}