DEV/BUT1/DEV1.1/Chaines_Caracteres/miroir.c

18 lines
299 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char **argv)
{
int i, j, cara;
for (i = argc - 1; i >= 0; i--)
{
cara = strlen(argv[i]);
for (j = cara; j >= 0; j--)
{
printf("%c", argv[i][j]);
}
printf(" ");
}
return EXIT_SUCCESS;
}