#include void main(void) { int no,temp,count=0; printf("非負の整数を入力してください :"); scanf("%d",&no); temp = no; while(temp > 0){ count++; temp = temp/10; } printf("%dは%d桁です。\n",no,count); }