c_piscine__offshore_mains/c01/ex07.c
2023-11-30 23:05:07 +04:00

33 lines
364 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);
}
void setUp(void)
{
}
void tearDown(void)
{
}