Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void BrojSlovaZnamenaka(char *niz, int *brojSlova, int *brojZnamenaka){
- int i = 0;
- while (niz[i]!='\0'){
- if (niz[i] >= 'a' && niz[i] <= 'z')
- *brojSlova += 1;
- else if (niz[i] >= 'A' && niz[i] <= 'Z')
- *brojSlova += 1;
- else if (niz[i] >= '0' && niz[i] <= '9')
- *brojZnamenaka += 1;
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement