Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

loop through number java

        int num = 458; // Sample input
        String sNum = Integer.toString(num);
        
        for (int i = 0; i < sNum.length(); i++)
        {
            System.out.print(sNum.charAt(i));
        }
 
PREVIOUS NEXT
Tagged: #loop #number #java
ADD COMMENT
Topic
Name
8+9 =