View Code of Problem 43

#include<stdio.h>
#include<string.h>
int main()
{
    char s[90],c[90];
    int i,j=0;
    gets(s);
    for(i=0;s[i]!='\0';i++)
    {
        if((s[i]>='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z'))
            c[j++]=s[i];
    }
    c[j]='\0';
    puts(c);
    return 0;
}

Double click to view unformatted code.


Back to problem 43