Добавить
Уведомления

Java, ch5, if else , reads an integer and prints how many digits the number has

Write a program that reads an integer and prints how many digits the number has, by checking whether the number is ≥ 10, ≥ 100, and so on. (Assume that all integers are less than ten billion.) If the number is negative, first multiply it with –1.

Иконка канала Java Бест Практики
2 подписчика
12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

Write a program that reads an integer and prints how many digits the number has, by checking whether the number is ≥ 10, ≥ 100, and so on. (Assume that all integers are less than ten billion.) If the number is negative, first multiply it with –1.

, чтобы оставлять комментарии