Extract Digits Program | ICSE Computer Applications | Java & BlueJ

preview_player
Показать описание
In this video, we will learn about the method of extracting digits of a number. When you divide a number by 10, the remainder is the digit in the unit’s place. You got your digit, now if you perform integer division on the number by 10, it will truncate the number by removing the digit you just extracted.

Рекомендации по теме
Комментарии
Автор

Nice explanation but how can i extract the digits of a number whose no. of digits are not know i.e. in the video you took the number to be of 3 digits how do i do the same when i dont know the number of digits

sujanby