All pastes #187921 Raw Edit

b4d

public text v1 · immutable
·published 2006-10-01 16:36 UTC
rendered paste body
#include<stdio.h>
int vrednost(char x[]){
    int i=0, k=0;
    while (x[i]!='\0'){
        switch (x[i]){
            case 'a': k++;
            case 'e': k++;
            case 'i': k++;
            case 'o': k++;
            case 'u': k++;
        }
        i++;
    }
    printf ("fe %d",k);
    return k;
}

int main(){
    char c[]="banana";
    printf("rezultat: %d", vrednost(c));
    return 0;
}