View Code of Problem 43

#include<stdio.h>
#include<string.h>
int main()
{
	char str[100];
	gets(str);
	int i;
	int length=strlen(str);
	for(i=0;i<length;i++){
		if(str[i]>='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z'){
			printf("%c",str[i]);
		}
	}
	
	return 0;
 } 

Double click to view unformatted code.


Back to problem 43