View Code of Problem 43

#include <stdio.h>
#include <ctype.h>
#include <string.h>

int main(void)
{
	char a[90],b[90];
	int i = 0,j = 0;
	gets(a);
	for(;i <= strlen(a);i++)
	{
		if(islower(a[i]) || isupper(a[i]))
			b[j++] = a[i];
	}
	b[j] = '\0';
	puts(b);
	return 0;
}

Double click to view unformatted code.


Back to problem 43