Home > database >  Input a string of a string with whitespace, the output of the lowercase letter, don't repeat, n
Input a string of a string with whitespace, the output of the lowercase letter, don't repeat, n

Time:12-18

#include
Int main ()
{
Char STR [80], [26] y;
Printf (" Input a string: ");
Int I, j, m=0;
for(i=0; The scanf (" % c ", & amp; STR [I]), STR [I]!='\ n'; I++)
{
If (STR [I] & gt;='a' & amp; & STR [I] <='z')
{[m] y=STR [I];
M++; }
}
Printf (" \ n the result is: ");
for(i=0; i{the for (j=1; JIf (y [j]==y [I])
Y [j]=0;
}
for(i=0; i{if (y [I]!=0)
Printf (" % c ", y [I]); }
If (m==0)
Printf (" not found ");
return 0;
}
  • Related