sharief sharief wrote:
i need a preogram code to count number of digits in a
given number which is read randomly from key board.

assuming Number is a positive integer...

        Digits = ceil(log10((double)Number))

(where ceil() is rounding up to the next larger integer)
_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime

Reply via email to