View Code of Problem 43

#include "stdio.h"
#include "math.h"
#include "string.h"

void main()
{
	int i,j,k;
	char s[100];
	gets(s);
	for(i=0;s[i]!='\0';i++)
	{
		if((s[i]>='a'&&s[i]<='z')||(s[i]>='A'&&s[i]<='Z'))
			printf("%c",s[i]);
	}
}

Double click to view unformatted code.


Back to problem 43