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