A voir également:
- Besoin d'aide pour exo en c
- Convertir fichier exo en mp4 ✓ - Forum Windows 7
- Ouvrir un fichier de type exo - Forum Windows
- Besoin d'aide pour un exo ✓ - Forum Java
- Exo algorithme corrigé pdf 1ere année ✓ - Forum Programmation
- Exo france ioi en C - Forum C
2 réponses
lami20j
Messages postés
21331
Date d'inscription
jeudi 4 novembre 2004
Statut
Modérateur, Contributeur sécurité
Dernière intervention
30 octobre 2019
3 566
8 déc. 2007 à 00:00
8 déc. 2007 à 00:00
Salut,
essaie ça
essaie ça
#include<stdio.h>
#define DEDANS 1
#define DEHORS 0
int main ()
{
int c, test;
test = DEHORS;
while((c=getchar()) != EOF){
if(c==' ' || c == '\t' || c == '\n')
test = DEHORS;
else if(test == DEHORS){
test = DEDANS;
printf("%c",toupper(c));
}
}
return 0;
}
8 déc. 2007 à 08:49