View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43