Advertisement
pranto_95

Check Vowel after T

Jul 2nd, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main(){
  4. int i,l,c,d,n=0,j;
  5. char x[100];
  6. gets(x);
  7. l=strlen(x);
  8. j=l-1;
  9. c=0;
  10. for(i=0;i<l;i++){
  11. if(x[i]=='t'){
  12. c=i;
  13. c++;
  14. break;
  15. }
  16. }
  17. for(j=i;j<l;j++){
  18. if(x[j]=='a'||x[j]=='e'||x[j]=='i'||x[j]=='o'||x[j]=='u'){
  19. n++;
  20. }
  21. }
  22. printf("%d",n);
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement