Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
B_141202_CONTADORPALABRAS
//Title of this code #include <stdio.h> #include <string.h> #include <ctype.h> #define _T 1000 int main(void) { char texto[_T]; short i; short contador; gets(texto); for(contador = 0 , i = 0 ; texto[i] ; i++) { if(isalnum(texto[i]) && !isalnum(texto[i + 1])) { contador++; } } printf("Cadena ... #%s#", texto); printf("\n\n\nPALABRAS: %hd\n\n\n", contador); return 0; }
run
|
edit
|
history
|
help
0
Midterm practice 2
Project 3 part 2 Book v10.2
2.1.2 Sum of all the elements in a one dimensional array A using reduction.
18BCE2182 ASSESS_1 Q2-3
Sunday assignment calculator
Tern operators
bitwise manipulation using another function
static int account
14th Feb Programming Project v.01
joseph a triangle