#include <stdio.h> int main() { int n; int count=0; scanf("%d",&n); while(n!=0) { n=n/10; count++; } printf("The num has %d digits" ,count); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)