Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #define TAILLE 5
- void main (void)
- {
- char lettre[TAILLE] ;
- unsigned int count, i, majd ;
- printf("entrer la chaine de caracteres : ");
- if( gets(lettre) == NULL )
- {
- puts("uiDQGJHOUDS");
- }
- else
- {
- count = ( strlen(lettre) + 1 ) ;
- for ( i = 0 ; i < count ; i++ )
- {
- printf("%s", lettre[i] );
- if ( lettre[i] > 64 || lettre[i] < 64 )
- {
- }
- }
- printf("il y as %d caracteres dans cette chaine \n", count );
- printf("il y as %d caracteres dans cette chaine \n", count );
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement