Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#include <stdio.h>
- //#include <string.h>
- //#include <math.h>
- //#include <algorithm>
- //#include <iostream>
- //
- //using namespace std;
- //
- //
- //int main() {
- //
- //// freopen("in.txt", "r", stdin);
- //// freopen("out.txt", "w", stdout);
- //
- //
- //
- //
- //
- //return 0;
- //
- //}
- //
- #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(check_vowel(s[i]) == 1) {
- // s2[j++] = s[i];
- //
- // }
- // e=strlen(s2);
- 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]);
- //continue;
- }
- //printf("%c", s2[i]);
- }
- // printf("%s",s3);
- //
- // printf("%d",e);
- return 0;
- }
- int check_vowel(char ch)
- {
- if (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