mirror of
https://codeberg.org/DansLeRuSH/c-plus-plus-exercises.git
synced 2024-11-21 19:18:08 +00:00
23 lines
347 B
C++
23 lines
347 B
C++
|
// Auteur : Franck ALBARET
|
||
|
#include <stdio.h>
|
||
|
#include <conio.h>
|
||
|
|
||
|
int main (void)
|
||
|
{
|
||
|
char Texte [80];
|
||
|
int i=0;
|
||
|
clrscr();
|
||
|
puts ("Veuillez taper votre texte :\n\n");
|
||
|
gets(Texte);
|
||
|
while (Texte [i]!='\o')
|
||
|
{
|
||
|
if (Texte [i]!=' ')
|
||
|
{
|
||
|
printf ("%c",Texte [i]);
|
||
|
}
|
||
|
i=i+1;
|
||
|
}
|
||
|
getch();
|
||
|
return 0;
|
||
|
}
|