View Code of Problem 43

#include<stdio.h>

int main(){
	int i,j=0;
	char str1[90],str2[90];
	scanf("%s",str1);

	for(i=0;i<strlen(str1);i++){
		if(str1[i]>=65&&str1[i]<=122){
			str2[j]=str1[i];
			j++;
		}
	}
	printf("%s",str2);
	return 0;
}

Double click to view unformatted code.


Back to problem 43