28 lines
368 B
C
28 lines
368 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void){
|
||
|
char x;
|
||
|
int i = 0;
|
||
|
int j = 0;
|
||
|
int k = 0;
|
||
|
char y;
|
||
|
printf("Rentrer du texte:");
|
||
|
x = getchar();
|
||
|
while(1){
|
||
|
|
||
|
if(x == '\n'){
|
||
|
j++;
|
||
|
}
|
||
|
else{
|
||
|
if(x>='a'&&x<='z'&&x>='A'&&x<='Z'){
|
||
|
y=x;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
x = getchar()
|
||
|
}
|
||
|
|
||
|
printf("saut a la ligne: %d \nnombre de charactere")
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|