Advertisement
_Black_Panther_

Untitled

Sep 4th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1.  
  2.  
  3. #include<stdio.h>
  4. #include<string.h>
  5.  
  6. int check_vowel(char);
  7.  
  8.  
  9. int main(){
  10.  
  11. char s[100];
  12.  
  13. gets(s);
  14.  
  15. strlwr(s);
  16.  
  17. int j=0;
  18.  
  19. for(int i=0;s[i]!='\0';i++){
  20. if(!(check_vowel(s[i])))
  21. if(s[i] >= 'A' && s[i]<='Z' || s[i] >= 'a' && s[i]<='z'){
  22. printf(".");
  23. printf("%c", s[i]);
  24.  
  25. }
  26.  
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. // printf("%s",s3);
  36. //
  37. // printf("%d",e);
  38.  
  39.  
  40.  
  41.  
  42. return 0;
  43. }
  44.  
  45. int check_vowel(char ch)
  46. {
  47. if ( ch == 'y'|| ch == 'Y' || ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U')
  48. return 1;
  49. else
  50. return 0;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement