View Code of Problem 43

#include<stdio.h>  
#include<string.h>  
char s[100];  
int main()  
{  
    int len;  
    int i;  
    while(scanf("%s",s)!=EOF)  
    {  
        len=strlen(s);  
        for(i=0;i<len;i++)  
            if((s[i]>='A'&&s[i]<='Z')||(s[i]>='a'&&s[i]<='z'))  
                printf("%c",s[i]);  
        printf("\n");  
    }  
    return 0;  
}  

Double click to view unformatted code.


Back to problem 43