View Code of Problem 43

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

}

Double click to view unformatted code.


Back to problem 43