Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
A_141205_ContadorPalabras
//Title of this code #include <stdio.h> #include <string.h> #include <ctype.h> int main(void) { char cad[1000]; short i; short contador; gets(cad); for(contador = 0 , i = 0 ; cad[i] ; i++) { if(isalnum(cad[i]) && !isalnum(cad[i + 1])) { contador++; } } printf("\n\n\nPalabras: %hd\n\n\n", contador); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
main.c
Test 4
SOLUCIONES_TRABAJO_05
Add.c
swap_bitwise.c
int_A_1a.c
14th Feb Project
Why &(a+1) is not allowed
loop
SAI_1-6.c
Please log in to post a comment.