Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<string.h>
- #include<stdio.h>
- int main()
- {
- char x[99];
- gets(x);
- int i;
- for(i=0; x[i]!='\0'; i++)
- {
- if((x[i]=='a'||x[i]=='e'||x[i]=='i'||x[i]=='y'||x[i]=='o'||x[i]=='u')||(x[i]=='A'||x[i]=='Y'||x[i]=='E'||x[i]=='I'||x[i]=='0'||x[i]=='U'))
- {
- x[i]=' ';
- }
- else if(x[i]>='A'&&x[i]<='Z')
- {
- {
- x[i]=x[i]-'A'+'a';
- }
- printf("%c%c",46,x[i]);
- }
- else
- printf("%c%c",46,x[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement