Nayeemzaman

String Task

Nov 11th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. int main()
  2. {
  3.     char ch1[101];
  4.     int l,i,j,x=1;
  5.     scanf("%s",ch1);
  6.     strlwr(ch1);
  7.     l=strlen(ch1);
  8.  
  9.     for(i=0;i<l;i++)
  10.     {
  11.         if(ch1[i]!='a'&&ch1[i]!='e'&&ch1[i]!='i'&&ch1[i]!='o'&&ch1[i]!='u'&&ch1[i]!='y')
  12.         {
  13.             printf(".%c",ch1[i]);
  14.         }
  15.     }
  16.     printf("\n");
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment