Advertisement
aiNayan

492

Dec 27th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. char g,v;
  5. while((g=getchar())!='\0')
  6. {
  7. if(g=='a'||g=='A'||g=='e'||g=='E'||g=='i'||g=='I'||g=='o'||g=='O'||g=='u'||g=='U')
  8. {
  9. printf("%c",g);
  10. while((g=getchar())&&(g>='a'&&g<='z')||(g>='A'&&g<='Z'))
  11. printf("%c",g);
  12. printf("ay%c",g);
  13. }
  14. else if((g>='a'&&g<='z')||(g>='A'&&g<='Z'))
  15. {
  16. v=g;
  17. while((g=getchar())&&(g>='a'&&g<='z')||(g>='A'&&g<='Z'))
  18. printf("%c",g);
  19. printf("%cay%c",v,g);
  20. }
  21. }
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement