c_piscine__offshore_mains/c01/ex07.c
Aleksei Chubukov d75ddf60ed add ex0{3..8}
2023-11-22 22:15:58 +04:00

24 lines
316 B
C

#include <stdio.h>
void ft_rev_int_tab(int *tab, int size);
void printarr(int *arr, int len)
{
int i = 0;
while (i < len)
{
printf("%d ", arr[i]);
i++;
}
}
int main(void)
{
int a[10] = {1, 3, 5, 7, 9, 11, 13, 15, 17};
int l = 9;
printarr(a, l);
printf("\n");
ft_rev_int_tab(a, l);
printarr(a, l);
}