#include<stdio.h>void main(){ char ch; int sum; sum=0; while(1) { ch=getchar(); if(ch=='\n') { break; } if(ch>'0'&&ch<'9') { sum++; } } printf("sum=%d",sum);}