View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43