#include<stdio.h> main() { int a=0; char ch; printf("enter letter:"); while((ch=getchar())!='\n') {if(ch>='0'&&ch<='9') a=a+1; } printf("%d",a) ; getch(); }