Advertisement
anparvez10

ABC

Sep 24th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include<string.h>
  2. #include<stdio.h>
  3. int main()
  4. {
  5. char x[99];
  6. gets(x);
  7. int i;
  8. for(i=0; x[i]!='\0'; i++)
  9. {
  10. 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'))
  11. {
  12. x[i]=' ';
  13.  
  14. }
  15. else if(x[i]>='A'&&x[i]<='Z')
  16. {
  17. {
  18. x[i]=x[i]-'A'+'a';
  19. }
  20. printf("%c%c",46,x[i]);
  21. }
  22.  
  23. else
  24. printf("%c%c",46,x[i]);
  25. }
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement