کد دیگه که عالی کار می کنه ولی ممیز رو حذف می کنه:
#include <iostream>
#include<stdio.h>
#include<stdlib.h>
int main()
{
char *str="abcdjslgkslga4747l52kenhkle7l4j63.6len6lejl" ;
int i=0;
while(str[i]!='\0')
{
if(str[i]>='0' && str[i]<='9')// check that if the value belong to
// this condition or not , if yes then print
printf("%c",str[i]);
i++;
}
return 0;
}