DEV/DEV1.1/TP09/palindrome.c

17 lines
296 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char const *argv[]){
char* mot= (char*) malloc(100*sizeof(char));
printf("rentrez un/des mot.s :\n");
fgets(mot,100,stdin);
for (int i = 0; i < 100*sizeof(char); ++i)
{
printf("%c",*(mot+i));
}
return 0;
}