Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- int main(int argc, const char * argv[]) {
- char s[1000];
- scanf("%s", s);
- int broj_na_bukvi_i_cifri = 0;
- for(int i = 0; i < strlen(s); i++) {
- if(isalnum(s[i])) {
- broj_na_bukvi_i_cifri++;
- }
- }
- printf("%d\n", broj_na_bukvi_i_cifri);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement