#include<stdio.h> #include<string.h> int main() { char s[100],c[100]; int i,j; gets(s); while(s[i]!='\0') { if((s[i]>='A'&&s[i]<='Z')||s[i]>='a'&&s[i]<='z') s[j++]=s[i]; i++; } for(i=0;s[i]!='\0';i++) printf("%c",s[i]); } |
Double click to view unformatted code.