View Code of Problem 43

#include <iostream>
#include <string.h>
using namespace std;

int main(){
  char s[91];
  while(gets(s)!=NULL){
    int len = strlen(s);
    for(int i=0;i<len;i++){
      if(isalpha(s[i]))
        printf("%c",s[i]);
    }
    printf("\n");
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 43