DEV/DEV1.1/TP06/compte.c
2022-10-12 16:41:20 +02:00

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;
}