[text] k

Viewer

  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<ctype.h>
  4. int main()
  5. {
  6.     int i,j;
  7.     char a[105],b[105];
  8.     scanf("%s",a);
  9.  
  10.     for (i=0,j=0; i<strlen(a); i++)
  11.     {
  12.         //for (j=0; j<strlen(a); j++)
  13.         //{
  14.             if (a[i]!='a' && a[i]!='e' && a[i]!='i' && a[i]!='o' && a[i]!='u' && a[i]!='A' && a[i]!='E' && a[i]!='I' && a[i]!='O' && a[i]!= 'U')
  15.             {
  16.                 b[j]=a[i];
  17.                 j++;
  18.             }
  19.  
  20.         //}
  21.  
  22.     }
  23.        for (j=0;j<strlen(b);j++)
  24.             {
  25.                 printf(".%c",tolower(b[j]));
  26.             }
  27.  
  28.     //printf(".%c",b);
  29.  
  30.  
  31. }
  32.  

Editor

You can edit this paste and save as new:


File Description
  • k
  • Paste Code
  • 01 Dec-2022
  • 623 Bytes
You can Share it: