-
- #include <conio.h>
- #include <stdio.h>
- #include <string.h>
- #define taille 50000
-
- void main()
- {
- char L_tableau[taille];
- char L_temp;
- int L_index_debut;
- int L_index_fin;
- int L_index;
-
- printf("Entrer un texte de plus de 30 caracteres\n");
- gets(L_tableau);
-
- L_index_debut=0;
- L_index_fin= strlen(L_tableau);
- L_index=L_index_fin;
-
- do
- {
- L_temp=L_tableau[L_index_debut];
- L_tableau[L_index_debut]=L_tableau[L_index_fin-1];
- L_tableau[L_index_fin-1]=L_temp;
- L_index_debut++;
- L_index_fin--;
- }
- while(L_index_debut<L_index_fin);
-
- printf("Voici votre texte a l'envers\n");
-
- printf("%s",L_tableau);
-
- getch();
- }
-
#include <conio.h>
#include <stdio.h>
#include <string.h>
#define taille 50000
void main()
{
char L_tableau[taille];
char L_temp;
int L_index_debut;
int L_index_fin;
int L_index;
printf("Entrer un texte de plus de 30 caracteres\n");
gets(L_tableau);
L_index_debut=0;
L_index_fin= strlen(L_tableau);
L_index=L_index_fin;
do
{
L_temp=L_tableau[L_index_debut];
L_tableau[L_index_debut]=L_tableau[L_index_fin-1];
L_tableau[L_index_fin-1]=L_temp;
L_index_debut++;
L_index_fin--;
}
while(L_index_debut<L_index_fin);
printf("Voici votre texte a l'envers\n");
printf("%s",L_tableau);
getch();
}