Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
430 B
1
Indexable
Never
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int unlusayisi(char []);

int main(){
	int sonuc;
	char cumle1[20];
	puts("cumle gir:");
	gets(cumle1);
	
	sonuc= unlusayisi(cumle1);
	printf("%d",sonuc);
	
	return 0;
}

int unlusayisi(char cumle[]){
	int sayac=0,i=0;
	while(cumle[i]!='\0'){
		if(cumle[i]=='a'||'e'||'i'||'o'||'u'){
			sayac++;
		}
		i++;
	}
	return sayac;
}