View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43