Scientific Games Interview Question

Write a program to find number of digits

Interview Answer

Anonymous

Sep 22, 2022

#include int main() { int n=10000,rem,count=0; while(n>0) { rem=n%10; count=count+1; n=n/10; } printf("%d",count); return 0; }