- #1
iasc
- 17
- 0
I'm trying to write a piece of code for the rule 'i before e except after c'.
Heres what I have so far.
if(str[4]=='c')
&&
if(str[5]=='ei')
printf ("yes\n");
else
printf("no\n");
I don't really want the answer but I just want to know if I'm going in the right direction.
Heres what I have so far.
if(str[4]=='c')
&&
if(str[5]=='ei')
printf ("yes\n");
else
printf("no\n");
I don't really want the answer but I just want to know if I'm going in the right direction.