View Code of Problem 43

#include <stdio.h>
    int main(){
    	char c[90];
    	int i,j=0;
    	scanf("%s",&c);
    	for(i=0;c[i];i++){
    		if((c[i]>='a' && c[i]<='z') || (c[i]>='A' && c[i]<='Z')){
    			c[j]=c[i];
    			j++;
    		}	
    	}
    	c[j]='\0';
    	printf("%s",c);
    }

Double click to view unformatted code.


Back to problem 43