View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43