Answers for "how to separate a number into digits java"

2

how to separate a number into digits java

public static void main(String[] args) {

int num=1020; // int number


while (num > 0) {

    System.out.println( num % 10);

    num = num / 10;

}

}
Posted by: Guest on January-18-2021

Code answers related to "how to separate a number into digits java"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language