View Code of Problem 43

#include<stdio.h>
void main()
{
    char str[90], str2[90];
    int i=0,j=0;
    scanf("%s", str);
    while(str[i]!='\0')
    {
        if((str[i]>=65 && str[i]<=90) || (str[i]>=97 && str[i]<=122))
        {
            str2[j] = str[i];
            j++;
        }
        i++;
    }
    str2[i] = '\0';
    printf("%s", str2);

}

Double click to view unformatted code.


Back to problem 43