Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int check_vowel(char);
- int main(){
- char s[100];
- gets(s);
- strlwr(s);
- int j=0;
- for(int i=0;s[i]!='\0';i++){
- if(!(check_vowel(s[i])))
- if(s[i] >= 'A' && s[i]<='Z' || s[i] >= 'a' && s[i]<='z'){
- printf(".");
- printf("%c", s[i]);
- }
- }
- // printf("%s",s3);
- //
- // printf("%d",e);
- return 0;
- }
- int check_vowel(char ch)
- {
- 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')
- return 1;
- else
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement