View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43