Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include <ctype.h>
- int broj_soglaski(char* s)
- {
- if(*s == '\0')
- return 0;
- else
- {
- *s = tolower(*s);
- if(isalpha(*s) && (*s != 'a') && (*s != 'e') && (*s != 'i') && (*s != 'o') && (*s != 'u'))
- return 1 + broj_soglaski(s + 1);
- return broj_soglaski(s + 1);
- }
- }
- int main(){
- char niza[100];
- gets(niza);
- printf("%d", broj_soglaski(niza));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment