char str[81]; int i,j; scanf("%s",str); for(i=0,j=0;str[i];i++) if(!(str[i]>='0' && str[i]<='9')) { str[j]=str[i]; j++; } str[j]='\0'; puts(str);