Jump to content

C De Büyük Ünlü Uyumu Yardımm


m.xcan

Recommended Posts

#include<conio.h>
#include<stdio.h>
main(){
char a[10];
gets(a);
for(int i=1;i<=10;i++){
if(a[i]=='a' || a[i]=='o' || a[i]=='u'){
for(int j=1;j<=10;j++){
if(a[j]=='e' || a[j]=='i'){
break;
}
}
}
}
if(a[j]=='e' || a[j]=='i')
printf("Uymaz");
else
printf("Uyar");
getch();
}
sondan 6. satır yani ifle başlayan satrda hata veriyor nedenini bilen arkadaşlar yardım edebilir mi??
Link to comment
Share on other sites

[quote name='ozyol' date='08 Aralık 2010 - 18:11 ' timestamp='1291832489' post='923470']
if(a[j]=='e' || a[j]=='i') yanlış


if(a[c]=='e' || a[j]=='i') doğru

c'den anlamam amacım yardımcı olmak. Goole yazınca hatayı aldım. umarım işine yarar.
[/quote]
Teşekkür ederim ama işe yaramadı :(

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...