DEV/DEV1.1/TP09/palindrome.c

17 lines
296 B
C
Raw Normal View History

2022-11-15 11:27:45 +01:00
#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;
}