View Code of Problem 43

#include<stdio.h>
#include<math.h>
#include<string.h>
void main()
{
int i,j=0,k;
char a[1000],b[1000];
gets(a);
for(i=0;i<strlen(a);i++)
{
	if(a[i]>='a'&&a[i]<='z'||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