Find number of digit in a given number in java ||Java Programming Problem 1

preview_player
Показать описание
Programming problem solving tutorial in java.
Program 1: Write a program to find a number of digits in a given number.
Input : 4567
Output : 4
Рекомендации по теме
Комментарии
Автор

Wow sir thank you I had to subbit my comp. notebook tommorow and your program helped me

swastiktripathi
Автор

what about zero? zero has one digit but it is not defined in your code

ebrarbutun
Автор

How to count number of digits in a number starting with zero? For example if I enter a number 0123, the count output I must get is 4.

abhi