View Code of Problem 43

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

Double click to view unformatted code.


Back to problem 43